summaryrefslogtreecommitdiffstats
path: root/tests/test_echo_tcp_connect.c
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2015-08-12 08:37:39 +0200
committerAndreas Schneider <asn@samba.org>2015-08-17 12:15:45 +0200
commit94e6f3b24ad8e21857f3062a2a21429dea31b790 (patch)
treef3782a8ddc817364d2cafb33414ae2a58084ecae /tests/test_echo_tcp_connect.c
parent9434cdc6747b0837551bdd341d2f9b0f5479eb07 (diff)
downloadsocket_wrapper-94e6f3b24ad8e21857f3062a2a21429dea31b790.tar.gz
socket_wrapper-94e6f3b24ad8e21857f3062a2a21429dea31b790.tar.xz
socket_wrapper-94e6f3b24ad8e21857f3062a2a21429dea31b790.zip
tests: Fix passing pointer of incompatible type
Signed-off-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'tests/test_echo_tcp_connect.c')
-rw-r--r--tests/test_echo_tcp_connect.c2
1 files changed, 1 insertions, 1 deletions
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);