diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-05-19 17:22:43 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-05-19 17:22:43 +0000 |
commit | badadc427a99e5483402c21bf5b7ae64722930e9 (patch) | |
tree | a0eb3f187458c32d8ca06dd78dce355e0166a2c2 /src/socket.cpp | |
parent | 315b9f6fd9ccbd3a916dc206e2275c46b46da626 (diff) |
Visual studio's ability to translate tabs to four spaces as default frustrates and peplexes tabnazi cat.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7047 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/socket.cpp')
-rw-r--r-- | src/socket.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/socket.cpp b/src/socket.cpp index 5882a1c0f..399b71cfa 100644 --- a/src/socket.cpp +++ b/src/socket.cpp @@ -304,22 +304,22 @@ bool irc::sockets::MatchCIDR(const char* address, const char* cidr_mask, bool ma void irc::sockets::Blocking(int s) { #ifndef WIN32 - int flags = fcntl(s, F_GETFL, 0); + int flags = fcntl(s, F_GETFL, 0); fcntl(s, F_SETFL, flags ^ O_NONBLOCK); #else - unsigned long opt = 0; - ioctlsocket(s, FIONBIO, &opt); + unsigned long opt = 0; + ioctlsocket(s, FIONBIO, &opt); #endif } void irc::sockets::NonBlocking(int s) { #ifndef WIN32 - int flags = fcntl(s, F_GETFL, 0); + int flags = fcntl(s, F_GETFL, 0); fcntl(s, F_SETFL, flags | O_NONBLOCK); #else - unsigned long opt = 1; - ioctlsocket(s, FIONBIO, &opt); + unsigned long opt = 1; + ioctlsocket(s, FIONBIO, &opt); #endif } |