summaryrefslogtreecommitdiff
path: root/lib/async_req
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2015-10-21 10:37:25 +1300
committerRalph Böhme <slow@samba.org>2015-10-21 17:31:00 +0200
commit7cf45539da9cba25130457941814da12d0a828c3 (patch)
treed85f3f9afd0aff15bbb36878b192bd31669b64a9 /lib/async_req
parentf99d0b917419756b11f0ebfecbe84b3ebab7fa0a (diff)
downloadsamba-7cf45539da9cba25130457941814da12d0a828c3.tar.gz
selftest: Fix memset parameters in test for async_connect_send()
This fixes: ../lib/async_req/async_connect_send_test.c: In function ‘main’: ../lib/async_req/async_connect_send_test.c:88:3: error: ‘memset’ used with constant zero length parameter; this could be due to transposed parameters [-Werror=memset-transposed-args] memset(&addr, sizeof(addr), 0); ^ Bug: https://bugzilla.samba.org/show_bug.cgi?id=11564 Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org> Autobuild-User(master): Ralph Böhme <slow@samba.org> Autobuild-Date(master): Wed Oct 21 17:31:00 CEST 2015 on sn-devel-104
Diffstat (limited to 'lib/async_req')
-rw-r--r--lib/async_req/async_connect_send_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/async_req/async_connect_send_test.c b/lib/async_req/async_connect_send_test.c
index e61205653bb..34ea6b7d3d7 100644
--- a/lib/async_req/async_connect_send_test.c
+++ b/lib/async_req/async_connect_send_test.c
@@ -85,7 +85,7 @@ int main(int argc, const char *argv[])
return 1;
}
- memset(&addr, sizeof(addr), 0);
+ memset(&addr, 0, sizeof(addr));
addr.sin_family = AF_INET;
addr.sin_port = htons(port);
addr.sin_addr.s_addr = inet_addr("127.0.0.1");