summaryrefslogtreecommitdiff
path: root/pjlib/src/pjlib-test/ioq_unreg.c
diff options
context:
space:
mode:
Diffstat (limited to 'pjlib/src/pjlib-test/ioq_unreg.c')
-rw-r--r--pjlib/src/pjlib-test/ioq_unreg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pjlib/src/pjlib-test/ioq_unreg.c b/pjlib/src/pjlib-test/ioq_unreg.c
index 475d62fe..d099eb1b 100644
--- a/pjlib/src/pjlib-test/ioq_unreg.c
+++ b/pjlib/src/pjlib-test/ioq_unreg.c
@@ -165,7 +165,7 @@ static int perform_unreg_test(pj_ioqueue_t *ioqueue,
return -12;
}
- pj_memset(&callback, 0, sizeof(callback));
+ pj_bzero(&callback, sizeof(callback));
status = pj_ioqueue_register_sock(test_pool, ioqueue, osd.sock,
NULL, &callback, &osd.key);
if (status != PJ_SUCCESS) {
@@ -226,7 +226,7 @@ static int perform_unreg_test(pj_ioqueue_t *ioqueue,
}
/* Register socket to ioqueue */
- pj_memset(&callback, 0, sizeof(callback));
+ pj_bzero(&callback, sizeof(callback));
callback.on_read_complete = &on_read_complete;
status = pj_ioqueue_register_sock(sock_data.pool, ioqueue, sock_data.sock,
NULL, &callback, &sock_data.key);