diff options
author | Andreas Schneider <asn@samba.org> | 2015-08-12 08:37:39 +0200 |
---|---|---|
committer | Andreas Schneider <asn@samba.org> | 2015-08-17 12:15:45 +0200 |
commit | 94e6f3b24ad8e21857f3062a2a21429dea31b790 (patch) | |
tree | f3782a8ddc817364d2cafb33414ae2a58084ecae /tests/test_echo_tcp_connect.c | |
parent | 9434cdc6747b0837551bdd341d2f9b0f5479eb07 (diff) | |
download | socket_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.c | 2 |
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); |