diff options
author | Sebastian Hahn <sebastian@torproject.org> | 2011-08-09 10:59:03 +0200 |
---|---|---|
committer | Sebastian Hahn <sebastian@torproject.org> | 2011-11-20 15:15:14 +0100 |
commit | 2efa6eb652d9eb2dd6d91a5e4ef3e9eea1ac7d22 (patch) | |
tree | 20ebf5b67474869236f0461b2f3038fed2e18722 /src/common/compat.h | |
parent | 3dc2a1c62cf01218f1a1afc03e54b0b2b52046e7 (diff) | |
download | tor-2efa6eb652d9eb2dd6d91a5e4ef3e9eea1ac7d22.tar.gz tor-2efa6eb652d9eb2dd6d91a5e4ef3e9eea1ac7d22.zip |
Sockets are unsigned on windows
this gets rid of a warning about signed/unsigned comparison
This is a backport of 0a5338e03cdf14ef80584c6ff8adeb49200b8a76 that
accidentally only went into master
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 7e6058a547..011b9c8674 100644 --- a/src/common/compat.h +++ b/src/common/compat.h @@ -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) |