diff options
author | Nick Mathewson <nickm@torproject.org> | 2012-01-18 15:29:41 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2012-01-18 15:29:41 -0500 |
commit | 1772782e425734967981b79be1122017ef606dd0 (patch) | |
tree | 84c950ac062879c4961376ee256d9dbf9ffa4c8b /src/common/compat.h | |
parent | d04bf66120420e89ddb479316f4026869abc9154 (diff) | |
parent | 6d595fa4cf679cf7c66673726596548758a298bc (diff) | |
download | tor-1772782e425734967981b79be1122017ef606dd0.tar.gz tor-1772782e425734967981b79be1122017ef606dd0.zip |
Merge remote-tracking branch 'origin/maint-0.2.2'
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 2db8107a8e..5bf12cdf89 100644 --- a/src/common/compat.h +++ b/src/common/compat.h @@ -400,7 +400,7 @@ typedef int socklen_t; #ifdef MS_WINDOWS #define tor_socket_t intptr_t -#define SOCKET_OK(s) ((unsigned)(s) != INVALID_SOCKET) +#define SOCKET_OK(s) ((SOCKET)(s) != INVALID_SOCKET) #else #define tor_socket_t int #define SOCKET_OK(s) ((s) >= 0) |