]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Really Fixup 86eba14ac549: error return values are negative
authorteor (Tim Wilson-Brown) <teor2345@gmail.com>
Wed, 18 Nov 2015 12:54:26 +0000 (23:54 +1100)
committerteor (Tim Wilson-Brown) <teor2345@gmail.com>
Wed, 18 Nov 2015 12:54:26 +0000 (23:54 +1100)
src/test/test_util.c

index 1a749735b65fb82d93bbe5ec4b66b199bd8b3e06..15eb2cf3b0d56ca8dfa35eef1a13da0c48dab2fb 100644 (file)
@@ -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