]> git.tdb.fi Git - libs/net.git/blobdiff - source/net/windows/socket.cpp
Include the matching header first in .cpp files
[libs/net.git] / source / net / windows / socket.cpp
index a7268e85a65f46bd91e1d752dbfcba4c5fc450c6..07db95d1f7dd928ab357d645754a05d4b899a6b4 100644 (file)
@@ -1,11 +1,13 @@
-#include <iostream>
 #include "platform_api.h"
+#include "socket.h"
+#include <iostream>
 #include <msp/core/systemerror.h>
 #include <msp/io/handle_private.h>
 #include "sockaddr_private.h"
-#include "socket.h"
 #include "socket_private.h"
 
+using namespace std;
+
 namespace {
 
 class WinSockHelper
@@ -70,7 +72,7 @@ void Socket::Private::set_block(bool b)
        ioctlsocket(handle, FIONBIO, &flag);
 }
 
-void Socket::Private::set_inherit(bool i)
+void Socket::Private::set_inherit(bool)
 {
 }
 
@@ -85,7 +87,7 @@ int Socket::Private::get_option(int level, int optname, void *optval, socklen_t
 }
 
 
-unsigned check_sys_error(int ret, const char *func)
+size_t check_sys_error(make_signed<size_t>::type ret, const char *func)
 {
        if(ret<0)
        {