]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/inspsocket.cpp
Dunno why this method was static, doesnt need to be...
[user/henk/code/inspircd.git] / src / inspsocket.cpp
index 43eaec04a76a1bb02b97aad506a81ab5870bdbe6..be2d99a62c03a9bed3ee33231f0cf8fedffe8300 100644 (file)
@@ -339,8 +339,8 @@ bool InspSocket::DoConnect()
        int flags = fcntl(this->fd, F_GETFL, 0);
        fcntl(this->fd, F_SETFL, flags | O_NONBLOCK);
 #else
-    unsigned long flags = 0;
-    ioctlsocket(this->fd, FIONBIO, &flags);
+       unsigned long flags = 0;
+       ioctlsocket(this->fd, FIONBIO, &flags);
 #endif
        if (connect(this->fd, (sockaddr*)addr, size) == -1)
        {
@@ -525,7 +525,7 @@ bool InspSocket::FlushWriteBuffer()
 #ifndef WIN32
                                int result = write(this->fd,outbuffer[0].c_str(),outbuffer[0].length());
 #else
-                int result = send(this->fd,outbuffer[0].c_str(),outbuffer[0].length(), 0);
+                               int result = send(this->fd,outbuffer[0].c_str(),outbuffer[0].length(), 0);
 #endif
                                if (result > 0)
                                {