diff options
author | Andreas Schneider <asn@samba.org> | 2013-12-23 15:03:26 +0100 |
---|---|---|
committer | Andreas Schneider <asn@samba.org> | 2013-12-23 15:03:26 +0100 |
commit | 1544ad632c71e2fe9d355baf639f2a9a0d479b0d (patch) | |
tree | e4a490624173b2675e0df3def75ebe942badb041 /tests | |
parent | 3c4759afc44b73484e99b130e931b2779b1f956c (diff) | |
download | socket_wrapper-1544ad632c71e2fe9d355baf639f2a9a0d479b0d.tar.gz socket_wrapper-1544ad632c71e2fe9d355baf639f2a9a0d479b0d.tar.xz socket_wrapper-1544ad632c71e2fe9d355baf639f2a9a0d479b0d.zip |
tests: Fix getsockopt() on Solaris.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_echo_tcp_socket_options.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_echo_tcp_socket_options.c b/tests/test_echo_tcp_socket_options.c index 798d612..c5c3a3f 100644 --- a/tests/test_echo_tcp_socket_options.c +++ b/tests/test_echo_tcp_socket_options.c @@ -42,9 +42,9 @@ static void test_sockopt_sndbuf(void **state) struct sockaddr_in sin; socklen_t slen = sizeof(struct sockaddr_in); int obufsize = 0; - socklen_t olen = 0; + socklen_t olen = sizeof(obufsize); int gbufsize = 0; - socklen_t glen = 0; + socklen_t glen = sizeof(gbufsize); int sbufsize = 0; int rc; int s; |