diff options
author | Nick Mathewson <nickm@torproject.org> | 2017-11-21 08:39:07 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-12-08 14:47:19 -0500 |
commit | 0792cc107ef588b9f9fa27165b73e19fbf07e92b (patch) | |
tree | 3194ccd5f53837a866288647b25f8c7b294cf22c /src/test/test_dns.c | |
parent | a48ba072a98a5d946079e2e0c15c84bb8c9d1a19 (diff) | |
download | tor-0792cc107ef588b9f9fa27165b73e19fbf07e92b.tar.gz tor-0792cc107ef588b9f9fa27165b73e19fbf07e92b.zip |
Convert connection_free to a nulling macro.
Diffstat (limited to 'src/test/test_dns.c')
-rw-r--r-- | src/test/test_dns.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/test_dns.c b/src/test/test_dns.c index 66b231b6da..1fee01d2c0 100644 --- a/src/test/test_dns.c +++ b/src/test/test_dns.c @@ -124,7 +124,7 @@ static int n_connection_free = 0; static connection_t *last_freed_conn = NULL; static void -NS(connection_free)(connection_t *conn) +NS(connection_free_)(connection_t *conn) { n_connection_free++; @@ -267,7 +267,7 @@ NS(test_main)(void *arg) */ NS_MOCK(dns_cancel_pending_resolve); - NS_MOCK(connection_free); + NS_MOCK(connection_free_); exitconn->on_circuit = &(on_circuit->base_); exitconn->base_.purpose = EXIT_PURPOSE_RESOLVE; @@ -294,7 +294,7 @@ NS(test_main)(void *arg) NS_UNMOCK(send_resolved_cell); NS_UNMOCK(send_resolved_hostname_cell); NS_UNMOCK(dns_cancel_pending_resolve); - NS_UNMOCK(connection_free); + NS_UNMOCK(connection_free_); tor_free(on_circuit); tor_free(exitconn); tor_free(nextconn); |