diff options
author | Andreas Schneider <asn@samba.org> | 2013-12-13 14:22:24 +0100 |
---|---|---|
committer | Andreas Schneider <asn@samba.org> | 2013-12-13 16:03:14 +0100 |
commit | 13c38c4b417540a237f0158c7f6e21f531e071d4 (patch) | |
tree | 35a6362c7db7227517e306d4e1b8091fff3af63c /tests/test_echo_udp_sendto_recvfrom.c | |
parent | bfeac80c3ca82acd9fba6fafcf92f6201b1be906 (diff) | |
download | socket_wrapper-13c38c4b417540a237f0158c7f6e21f531e071d4.tar.gz socket_wrapper-13c38c4b417540a237f0158c7f6e21f531e071d4.tar.xz socket_wrapper-13c38c4b417540a237f0158c7f6e21f531e071d4.zip |
tests: Use inet_pton() instead of inet_aton().
Diffstat (limited to 'tests/test_echo_udp_sendto_recvfrom.c')
-rw-r--r-- | tests/test_echo_udp_sendto_recvfrom.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_echo_udp_sendto_recvfrom.c b/tests/test_echo_udp_sendto_recvfrom.c index 4852766..f68cef9 100644 --- a/tests/test_echo_udp_sendto_recvfrom.c +++ b/tests/test_echo_udp_sendto_recvfrom.c @@ -50,7 +50,7 @@ static void test_sendto_recvfrom_ipv4(void **state) sin.sin_family = AF_INET; sin.sin_port = htons(TORTURE_ECHO_SRV_PORT); - rc = inet_aton(TORTURE_ECHO_SRV_IPV4, &sin.sin_addr); + rc = inet_pton(sin.sin_family, TORTURE_ECHO_SRV_IPV4, &sin.sin_addr); assert_int_equal(rc, 1); for (i = 0; i < 10; i++) { |