diff options
author | Nick Mathewson <nickm@torproject.org> | 2017-10-18 12:13:26 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-10-18 12:13:26 -0400 |
commit | 5bcd8dc5c482da4da71402cd06b0ecc709f05493 (patch) | |
tree | 23197f62f74d817be21b4dd4bc1d4799d4486a71 /src/common/compat.c | |
parent | b9b5f9a1a5a683611789ffe4c49e41325102cabc (diff) | |
download | tor-5bcd8dc5c482da4da71402cd06b0ecc709f05493.tar.gz tor-5bcd8dc5c482da4da71402cd06b0ecc709f05493.zip |
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.
Diffstat (limited to 'src/common/compat.c')
-rw-r--r-- | src/common/compat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/compat.c b/src/common/compat.c index 7fe97488e3..97eab94e04 100644 --- a/src/common/compat.c +++ b/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) */ /** @} */ |