From d3c101f14b17cd2750a289dda5c2fec82f9b9861 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Tue, 2 Sep 2014 12:17:15 +0200 Subject: tests: Pass the sockaddr structure to system functions. Signed-off-by: Andreas Schneider Reviewed-by: Stefan Metzmacher --- tests/test_echo_tcp_bind.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/test_echo_tcp_bind.c') diff --git a/tests/test_echo_tcp_bind.c b/tests/test_echo_tcp_bind.c index 705fd8d..b95724d 100644 --- a/tests/test_echo_tcp_bind.c +++ b/tests/test_echo_tcp_bind.c @@ -411,7 +411,7 @@ static void test_bind_on_ipv6_sock(void **state) assert_return_code(s, errno); addr_un.sa.un.sun_family = AF_UNIX; - rc = bind(s, &addr_un.sa.un, addr_un.sa_socklen); + rc = bind(s, &addr_un.sa.s, addr_un.sa_socklen); assert_int_equal(rc, -1); /* FreeBSD uses EINVAL here... */ assert_true(errno == EAFNOSUPPORT || errno == EINVAL); -- cgit