tor

The Tor anonymity network
git clone https://git.dasho.dev/tor.git
Log | Files | Refs | README | LICENSE

commit 5bcd8dc5c482da4da71402cd06b0ecc709f05493
parent b9b5f9a1a5a683611789ffe4c49e41325102cabc
Author: Nick Mathewson <nickm@torproject.org>
Date:   Wed, 18 Oct 2017 12:13:26 -0400

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:
Msrc/common/compat.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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) */ /** @} */