summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2015-10-16 16:50:00 +0200
committerAndreas Schneider <asn@samba.org>2015-10-19 10:43:01 +0200
commit6c1f0750b122bacbf6bca126ce0e13ccd1e31fe3 (patch)
treea478ab25e39aee02591dbd712bce7403970ac333 /tests
parentf635b312cd3cd166056dc02603c1f6b041f8d6e3 (diff)
downloadsocket_wrapper-6c1f0750b122bacbf6bca126ce0e13ccd1e31fe3.tar.gz
socket_wrapper-6c1f0750b122bacbf6bca126ce0e13ccd1e31fe3.tar.xz
socket_wrapper-6c1f0750b122bacbf6bca126ce0e13ccd1e31fe3.zip
tests: Fix compile warning
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/test_echo_tcp_bind.c2
1 files changed, 1 insertions, 1 deletions
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);