]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Make the mark_socket_open() no-op treat the socket as used.
authorNick Mathewson <nickm@torproject.org>
Wed, 18 Oct 2017 16:13:26 +0000 (12:13 -0400)
committerNick Mathewson <nickm@torproject.org>
Wed, 18 Oct 2017 16:13:26 +0000 (12:13 -0400)
This is preliminary for extracting the "take socket ownership" code
into its own function.

src/common/compat.c

index 7fe97488e3aad136428a758c13741cc173012678..97eab94e04e74248adbbe04a4241fd8cf8a4321f 100644 (file)
@@ -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) */
 /** @} */