diff options
author | Sebastian Hahn <sebastian@torproject.org> | 2011-08-09 10:59:03 +0200 |
---|---|---|
committer | Sebastian Hahn <sebastian@torproject.org> | 2011-08-09 11:03:16 +0200 |
commit | 0a5338e03cdf14ef80584c6ff8adeb49200b8a76 (patch) | |
tree | 48a44938adca56357c110ef6dfee369eacf16a85 /src/common/compat.h | |
parent | 10d9bcb2a2fe4e49afd88251fe92181c2ffbc231 (diff) | |
download | tor-0a5338e03cdf14ef80584c6ff8adeb49200b8a76.tar.gz tor-0a5338e03cdf14ef80584c6ff8adeb49200b8a76.zip |
Sockets are unsigned on windows
this gets rid of a warning about signed/unsigned comparison
Diffstat (limited to 'src/common/compat.h')
-rw-r--r-- | src/common/compat.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/compat.h b/src/common/compat.h index 98642e2d92..8e271ba905 100644 --- a/src/common/compat.h +++ b/src/common/compat.h @@ -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) |