aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_address.c
diff options
context:
space:
mode:
authorrl1987 <rl1987@sdf.lonestar.org>2015-03-22 15:22:02 +0200
committerNick Mathewson <nickm@torproject.org>2015-03-31 14:37:02 -0400
commit33fbb5011df19d6325e6b1e6e731fdf6b0f22f06 (patch)
tree6e0355a36c217f052d90ea00f07ddd282287305a /src/test/test_address.c
parent5e759127f8a8e176d40a213d31f340f7ec3d0b0d (diff)
downloadtor-33fbb5011df19d6325e6b1e6e731fdf6b0f22f06.tar.gz
tor-33fbb5011df19d6325e6b1e6e731fdf6b0f22f06.zip
Use tor_inet_pton() (not inet_pton()) in testcases.
Diffstat (limited to 'src/test/test_address.c')
-rw-r--r--src/test/test_address.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/test_address.c b/src/test/test_address.c
index 859c146a2b..a69a605873 100644
--- a/src/test/test_address.c
+++ b/src/test/test_address.c
@@ -130,8 +130,8 @@ test_address_ifaddrs_to_smartlist(void *arg)
ipv6_sockaddr = tor_malloc(sizeof(struct sockaddr_in6));
ipv6_sockaddr->sin6_family = AF_INET6;
ipv6_sockaddr->sin6_port = 0;
- inet_pton(AF_INET6, "2001:db8:8714:3a90::12",
- &(ipv6_sockaddr->sin6_addr));
+ tor_inet_pton(AF_INET6, "2001:db8:8714:3a90::12",
+ &(ipv6_sockaddr->sin6_addr));
ifa = tor_malloc(sizeof(struct ifaddrs));
ifa_ipv4 = tor_malloc(sizeof(struct ifaddrs));
@@ -540,7 +540,7 @@ test_address_udp_socket_trick_whitebox(void *arg)
mock_addr6 = (struct sockaddr_in6 *)mock_addr;
mock_addr6->sin6_family = AF_INET6;
mock_addr6->sin6_port = 0;
- inet_pton(AF_INET6,"2001:cdba::3257:9652",&(mock_addr6->sin6_addr));
+ tor_inet_pton(AF_INET6,"2001:cdba::3257:9652",&(mock_addr6->sin6_addr));
hack_retval =
get_interface_address6_via_udp_socket_hack(LOG_DEBUG,