summaryrefslogtreecommitdiff
path: root/src/common/compat.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2016-09-09 10:28:12 -0400
committerNick Mathewson <nickm@torproject.org>2016-09-09 10:28:12 -0400
commit4c55e8a58f41933e76bcb309206c98e7b5a1d834 (patch)
treedc806fb333a97fa1e6891fd3ca725e2ae8d8e05f /src/common/compat.c
parent2fe7e3d9d214b5cd7883ce83e5b11e14b02c5973 (diff)
downloadtor-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.c')
-rw-r--r--src/common/compat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/compat.c b/src/common/compat.c
index 5385bd871c..3fde2b3089 100644
--- a/src/common/compat.c
+++ b/src/common/compat.c
@@ -1110,8 +1110,8 @@ tor_close_socket_simple(tor_socket_t s)
/** As tor_close_socket_simple(), but keeps track of the number
* of open sockets. Returns 0 on success, -1 on failure. */
-int
-tor_close_socket(tor_socket_t s)
+MOCK_IMPL(int,
+tor_close_socket,(tor_socket_t s))
{
int r = tor_close_socket_simple(s);