summaryrefslogtreecommitdiff
path: root/libcr_ipc
diff options
context:
space:
mode:
authorLuke T. Shumaker <lukeshu@lukeshu.com>2025-05-12 14:26:21 -0600
committerLuke T. Shumaker <lukeshu@lukeshu.com>2025-05-12 14:26:21 -0600
commit811d9700e1414dae3357361b3ca565f673f63b08 (patch)
treece628075a2ae59d5362d2662465c918f57e81607 /libcr_ipc
parentcd5e55ebb7d5a51c0a8bd62137ab75a0f6ff1356 (diff)
parentb4a081932338f65aa87aeba5008463feb0a78519 (diff)
Merge branch 'lukeshu/misc'HEADmain
Diffstat (limited to 'libcr_ipc')
-rw-r--r--libcr_ipc/tests/test_chan.c2
-rw-r--r--libcr_ipc/tests/test_rpc.c2
-rw-r--r--libcr_ipc/tests/test_rwmutex.c2
-rw-r--r--libcr_ipc/tests/test_select.c6
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;