From: dw6 Date: Tue, 25 Nov 2008 15:19:17 +0000 (+0000) Subject: formatting X-Git-Url: http://g0dil.de/git?a=commitdiff_plain;h=88f9350ae6a506cf453d15d3bd1ed38cb1baf2b3;p=senf.git formatting git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@980 270642c3-0616-0410-b53a-bc976706d245 --- diff --git a/Socket/Protocols/Raw/TunTapSocketHandle.cc b/Socket/Protocols/Raw/TunTapSocketHandle.cc index e8c5266..6b36fb3 100644 --- a/Socket/Protocols/Raw/TunTapSocketHandle.cc +++ b/Socket/Protocols/Raw/TunTapSocketHandle.cc @@ -67,13 +67,13 @@ prefix_ std::string senf::TapSocketProtocol::init_client(std::string const & int prefix_ unsigned senf::TapSocketProtocol::available() const { - if (! fh().readable()) - return 0; - ssize_t l = ::recv(fd(),0,0,MSG_PEEK | MSG_TRUNC); - if (l < 0) - //SENF_THROW_SYSTEM_EXCEPTION(""); - return 1588; - return l; + if (!fh().readable()) + return 0; + ssize_t l = ::recv(fd(), 0, 0, MSG_PEEK | MSG_TRUNC); + if (l < 0) + //SENF_THROW_SYSTEM_EXCEPTION(""); + return 1588; + return l; } /* @@ -98,17 +98,17 @@ prefix_ bool senf::TapSocketProtocol::eof() } prefix_ unsigned int senf::TapSocketProtocol::ifaceIndex() - const + const { - return ifaceIndex_; + return ifaceIndex_; } prefix_ std::string senf::TapSocketProtocol::ifaceName() - const + const { - char buf[IF_NAMESIZE]; - if_indextoname(ifaceIndex_, buf); - return std::string(buf); + char buf[IF_NAMESIZE]; + if_indextoname(ifaceIndex_, buf); + return std::string(buf); } ///////////////////////////////cc.e////////////////////////////////////////