From 94e6f3b24ad8e21857f3062a2a21429dea31b790 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Wed, 12 Aug 2015 08:37:39 +0200 Subject: tests: Fix passing pointer of incompatible type Signed-off-by: Andreas Schneider --- tests/test_echo_tcp_connect.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/test_echo_tcp_connect.c') diff --git a/tests/test_echo_tcp_connect.c b/tests/test_echo_tcp_connect.c index f97b5ac..d2020c8 100644 --- a/tests/test_echo_tcp_connect.c +++ b/tests/test_echo_tcp_connect.c @@ -76,7 +76,7 @@ static void test_connect_downgrade_ipv6(void **state) assert_int_equal(rc, 1); /* Connect should downgrade to IPv4 and allow the connect */ - rc = connect(s, &addr.sa.in, addr.sa_socklen); + rc = connect(s, &addr.sa.s, addr.sa_socklen); assert_int_equal(rc, 0); close(s); -- cgit