diff options
author | teor (Tim Wilson-Brown) <teor2345@gmail.com> | 2015-11-18 23:54:26 +1100 |
---|---|---|
committer | teor (Tim Wilson-Brown) <teor2345@gmail.com> | 2015-11-18 23:54:26 +1100 |
commit | eed86892ddac634be61ddf5bcb8deb23d86512c4 (patch) | |
tree | 351d674b6724d635b119e062e3fa5ba277ee68a6 /src | |
parent | 3351f69c757b23e89f3785a3d1215f7152c1836e (diff) | |
download | tor-eed86892ddac634be61ddf5bcb8deb23d86512c4.tar.gz tor-eed86892ddac634be61ddf5bcb8deb23d86512c4.zip |
Really Fixup 86eba14ac549: error return values are negative
Diffstat (limited to 'src')
-rw-r--r-- | src/test/test_util.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/test/test_util.c b/src/test/test_util.c index 1a749735b6..15eb2cf3b0 100644 --- a/src/test/test_util.c +++ b/src/test/test_util.c @@ -20,7 +20,6 @@ #include <math.h> #include <ctype.h> #include <float.h> -#include <errno.h> /* XXXX this is a minimal wrapper to make the unit tests compile with the * changed tor_timegm interface. */ @@ -4344,7 +4343,7 @@ fd_is_nonblocking(tor_socket_t fd) #endif #ifdef EPROTONOSUPPORT -#define SOCKET_EPROTO(s) (s == EPROTONOSUPPORT) +#define SOCKET_EPROTO(s) (s == -EPROTONOSUPPORT) #else #define SOCKET_EPROTO(s) (0) #endif |