diff options
Diffstat (limited to 'libcr_ipc/tests')
-rw-r--r-- | libcr_ipc/tests/test_chan.c | 2 | ||||
-rw-r--r-- | libcr_ipc/tests/test_rpc.c | 2 | ||||
-rw-r--r-- | libcr_ipc/tests/test_rwmutex.c | 2 | ||||
-rw-r--r-- | libcr_ipc/tests/test_select.c | 6 |
4 files changed, 6 insertions, 6 deletions
diff --git a/libcr_ipc/tests/test_chan.c b/libcr_ipc/tests/test_chan.c index 4788dd4..a6eba82 100644 --- a/libcr_ipc/tests/test_chan.c +++ b/libcr_ipc/tests/test_chan.c @@ -41,7 +41,7 @@ COROUTINE consumer_cr(void *_ch) { } int main() { - intchan_t ch = {0}; + intchan_t ch = {}; coroutine_add("producer", producer_cr, &ch); coroutine_add("consumer", consumer_cr, &ch); coroutine_main(); diff --git a/libcr_ipc/tests/test_rpc.c b/libcr_ipc/tests/test_rpc.c index 1461450..ee88f47 100644 --- a/libcr_ipc/tests/test_rpc.c +++ b/libcr_ipc/tests/test_rpc.c @@ -50,7 +50,7 @@ COROUTINE worker2_cr(void *_ch) { } int main() { - intrpc_t ch = {0}; + intrpc_t ch = {}; coroutine_add("worker1", worker1_cr, &ch); coroutine_add("caller", caller_cr, &ch); coroutine_add("worker2", worker2_cr, &ch); diff --git a/libcr_ipc/tests/test_rwmutex.c b/libcr_ipc/tests/test_rwmutex.c index 77e8c7c..e79e779 100644 --- a/libcr_ipc/tests/test_rwmutex.c +++ b/libcr_ipc/tests/test_rwmutex.c @@ -12,7 +12,7 @@ #include "test.h" cr_rwmutex_t mu = {}; -char out[10] = {0}; +char out[10] = {}; size_t len = 0; COROUTINE cr1_reader(void *_mu) { diff --git a/libcr_ipc/tests/test_select.c b/libcr_ipc/tests/test_select.c index 9b5d117..3107155 100644 --- a/libcr_ipc/tests/test_select.c +++ b/libcr_ipc/tests/test_select.c @@ -11,15 +11,15 @@ CR_CHAN_DECLARE(intchan, int); -intchan_t ch[10] = {0}; -intchan_t fch = {0}; +intchan_t ch[10] = {}; +intchan_t fch = {}; COROUTINE consumer_cr(void *) { cr_begin(); struct cr_select_arg args[11]; - bool chdone[10] = {0}; + bool chdone[10] = {}; int arg2ch[10]; for (;;) { int ret_ch; |