mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Sockets are unsigned on windows
this gets rid of a warning about signed/unsigned comparison
This is a backport of 0a5338e03c that
accidentally only went into master
This commit is contained in:
+1
-1
@@ -396,7 +396,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)
|
||||
|
||||
Reference in New Issue
Block a user