소스 검색

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 6 년 전
부모
커밋
5bcd8dc5c4
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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) */
 /** @} */