diff options
author | Nick Mathewson <nickm@torproject.org> | 2016-09-09 10:28:12 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2016-09-09 10:28:12 -0400 |
commit | 4c55e8a58f41933e76bcb309206c98e7b5a1d834 (patch) | |
tree | dc806fb333a97fa1e6891fd3ca725e2ae8d8e05f /src/common/compat.h | |
parent | 2fe7e3d9d214b5cd7883ce83e5b11e14b02c5973 (diff) | |
download | tor-4c55e8a58f41933e76bcb309206c98e7b5a1d834.tar.gz tor-4c55e8a58f41933e76bcb309206c98e7b5a1d834.zip |
Fix cases where the tests were doing closesocket() on a non-socket
These seem to have caused warnings on windows. Hmmm.
Diffstat (limited to 'src/common/compat.h')
-rw-r--r-- | src/common/compat.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/compat.h b/src/common/compat.h index 12f280d2e9..ee1c9454de 100644 --- a/src/common/compat.h +++ b/src/common/compat.h @@ -478,7 +478,7 @@ typedef int socklen_t; #endif int tor_close_socket_simple(tor_socket_t s); -int tor_close_socket(tor_socket_t s); +MOCK_DECL(int, tor_close_socket, (tor_socket_t s)); tor_socket_t tor_open_socket_with_extensions( int domain, int type, int protocol, int cloexec, int nonblock); |