summaryrefslogtreecommitdiff
path: root/src/common/address.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-01-03 10:11:15 -0500
committerNick Mathewson <nickm@torproject.org>2017-01-03 10:11:15 -0500
commitf23ec14d62f82ee424b7aef9ff1c2253c3dd2b10 (patch)
tree1d9965437ae01c9c762fedc1652650da5f9302d1 /src/common/address.c
parent97ed2ce08560d1446c175a4a2e025762a1424e9a (diff)
downloadtor-f23ec14d62f82ee424b7aef9ff1c2253c3dd2b10.tar.gz
tor-f23ec14d62f82ee424b7aef9ff1c2253c3dd2b10.zip
Make tor_addr_lookup() mockable.
Diffstat (limited to 'src/common/address.c')
-rw-r--r--src/common/address.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/address.c b/src/common/address.c
index a5dbae453a..2693239146 100644
--- a/src/common/address.c
+++ b/src/common/address.c
@@ -237,8 +237,8 @@ tor_addr_make_null(tor_addr_t *a, sa_family_t family)
*
* Return 0 on success, -1 on failure; 1 on transient failure.
*/
-int
-tor_addr_lookup(const char *name, uint16_t family, tor_addr_t *addr)
+MOCK_IMPL(int,
+tor_addr_lookup,(const char *name, uint16_t family, tor_addr_t *addr))
{
/* Perhaps eventually this should be replaced by a tor_getaddrinfo or
* something.