diff options
author | Andreas Schneider <asn@samba.org> | 2015-08-12 08:48:56 +0200 |
---|---|---|
committer | Andreas Schneider <asn@samba.org> | 2015-08-17 12:15:45 +0200 |
commit | cf8fc6d9572cf7800e46e68e3d01802345a7e54b (patch) | |
tree | 80ea69d5af5e4ed27f5582425c0b2221202fcad8 /tests | |
parent | 94e6f3b24ad8e21857f3062a2a21429dea31b790 (diff) | |
download | socket_wrapper-cf8fc6d9572cf7800e46e68e3d01802345a7e54b.tar.gz socket_wrapper-cf8fc6d9572cf7800e46e68e3d01802345a7e54b.tar.xz socket_wrapper-cf8fc6d9572cf7800e46e68e3d01802345a7e54b.zip |
tests: Fix memset() call in new tests
Signed-off-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_echo_tcp_sendmsg_recvmsg.c | 2 | ||||
-rw-r--r-- | tests/test_echo_udp_sendmsg_recvmsg.c | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_echo_tcp_sendmsg_recvmsg.c b/tests/test_echo_tcp_sendmsg_recvmsg.c index 2adaa75..6760c88 100644 --- a/tests/test_echo_tcp_sendmsg_recvmsg.c +++ b/tests/test_echo_tcp_sendmsg_recvmsg.c @@ -236,7 +236,7 @@ static void test_sendmsg_recvmsg_ipv4_null(void **state) /* msg_name = NULL */ - memset(payload, '0', sizeof(payload)); + memset(payload, 0, sizeof(payload)); r_msg.msg_iov = &iov; r_msg.msg_iovlen = 1; diff --git a/tests/test_echo_udp_sendmsg_recvmsg.c b/tests/test_echo_udp_sendmsg_recvmsg.c index 8ebaa90..7f49f61 100644 --- a/tests/test_echo_udp_sendmsg_recvmsg.c +++ b/tests/test_echo_udp_sendmsg_recvmsg.c @@ -246,7 +246,7 @@ static void test_sendmsg_recvmsg_ipv4_connected(void **state) r_msg.msg_name = &r_addr.sa.ss; r_msg.msg_namelen = r_addr.sa_socklen; - memset(payload, '0', sizeof(payload)); + memset(payload, 0, sizeof(payload)); r_msg.msg_iov = &iov; r_msg.msg_iovlen = 1; @@ -308,7 +308,7 @@ static void test_sendmsg_recvmsg_ipv4_connected_null(void **state) /* msg_name = NULL */ - memset(payload, '0', sizeof(payload)); + memset(payload, 0, sizeof(payload)); r_msg.msg_iov = &iov; r_msg.msg_iovlen = 1; @@ -367,7 +367,7 @@ static void test_sendmsg_recvmsg_ipv4_connected_namelen(void **state) /* msg_name = NULL */ - memset(payload, '0', sizeof(payload)); + memset(payload, 0, sizeof(payload)); r_msg.msg_iov = &iov; r_msg.msg_iovlen = 1; |