From 6c1f0750b122bacbf6bca126ce0e13ccd1e31fe3 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Fri, 16 Oct 2015 16:50:00 +0200 Subject: tests: Fix compile warning Signed-off-by: Andreas Schneider Reviewed-by: Ralph Boehme --- tests/test_echo_tcp_bind.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_echo_tcp_bind.c b/tests/test_echo_tcp_bind.c index 0baf0bd..cde7e3f 100644 --- a/tests/test_echo_tcp_bind.c +++ b/tests/test_echo_tcp_bind.c @@ -365,7 +365,7 @@ static void test_bindresvport_ipv4(void **state) &addr.sa.in.sin_addr); assert_int_equal(rc, 1); - rc = connect(s, &addr.sa.in, addr.sa_socklen); + rc = connect(s, &addr.sa.s, addr.sa_socklen); assert_return_code(rc, errno); close(s); -- cgit