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.
This commit is contained in:
Nick Mathewson
2017-10-18 12:13:26 -04:00
parent b9b5f9a1a5
commit 5bcd8dc5c4
+1 -1
View 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) */
/** @} */