]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/socket.cpp
Change for reverse output of lists, most recent first, for bug #307. Also fix(Oms...
[user/henk/code/inspircd.git] / src / socket.cpp
index 5882a1c0f693d157ed4dfd31d44ef1cd18612675..411465ad6fa55fbefc5c83ea5eb045f56c469ad2 100644 (file)
  * ---------------------------------------------------
  */
 
+#include "inspircd.h"
 #include <string>
 #include "configreader.h"
 #include "socket.h"
-#include "inspircd.h"
 #include "socketengine.h"
 #include "wildcard.h"
 
@@ -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
 }