Sockets are unsigned on windows

this gets rid of a warning about signed/unsigned comparison
This commit is contained in:
Sebastian Hahn
2011-08-09 10:59:03 +02:00
parent 10d9bcb2a2
commit 0a5338e03c
+1 -1
View File
@@ -401,7 +401,7 @@ typedef int socklen_t;
#ifdef MS_WINDOWS
#define tor_socket_t intptr_t
#define SOCKET_OK(s) ((s) != INVALID_SOCKET)
#define SOCKET_OK(s) ((unsigned)(s) != INVALID_SOCKET)
#else
#define tor_socket_t int
#define SOCKET_OK(s) ((s) >= 0)