Explorar o código

Make the mark_socket_open() no-op treat the socket as used.

This is preliminary for extracting the "take socket ownership" code
into its own function.
Nick Mathewson %!s(int64=6) %!d(string=hai) anos
pai
achega
5bcd8dc5c4
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/common/compat.c

+ 1 - 1
src/common/compat.c

@@ -1186,7 +1186,7 @@ mark_socket_open(tor_socket_t s)
   bitarray_set(open_sockets, s);
 }
 #else /* !(defined(DEBUG_SOCKET_COUNTING)) */
-#define mark_socket_open(s) STMT_NIL
+#define mark_socket_open(s) ((void) (s))
 #endif /* defined(DEBUG_SOCKET_COUNTING) */
 /** @} */