diff options
Diffstat (limited to 'libcr_ipc/tests')
-rw-r--r-- | libcr_ipc/tests/test_mutex.c | 2 | ||||
-rw-r--r-- | libcr_ipc/tests/test_select.c | 2 | ||||
-rw-r--r-- | libcr_ipc/tests/test_sema.c | 4 |
3 files changed, 5 insertions, 3 deletions
diff --git a/libcr_ipc/tests/test_mutex.c b/libcr_ipc/tests/test_mutex.c index ee088f4..43714c9 100644 --- a/libcr_ipc/tests/test_mutex.c +++ b/libcr_ipc/tests/test_mutex.c @@ -28,7 +28,7 @@ COROUTINE cr_worker(void *_mu) { } int main() { - cr_mutex_t mu = {0}; + cr_mutex_t mu = {}; coroutine_add("a", cr_worker, &mu); coroutine_add("b", cr_worker, &mu); coroutine_main(); diff --git a/libcr_ipc/tests/test_select.c b/libcr_ipc/tests/test_select.c index 9609534..1db645b 100644 --- a/libcr_ipc/tests/test_select.c +++ b/libcr_ipc/tests/test_select.c @@ -5,7 +5,7 @@ */ #include <libcr/coroutine.h> -#include <libcr_ipc/select.h> +#include <libcr_ipc/chan.h> #include "test.h" diff --git a/libcr_ipc/tests/test_sema.c b/libcr_ipc/tests/test_sema.c index 3208237..e5b22a5 100644 --- a/libcr_ipc/tests/test_sema.c +++ b/libcr_ipc/tests/test_sema.c @@ -5,6 +5,8 @@ */ #include <libcr/coroutine.h> + +#define IMPLEMENTATION_FOR_LIBCR_IPC_SEMA_H YES /* so we can access .cnt */ #include <libcr_ipc/sema.h> #include "test.h" @@ -54,7 +56,7 @@ COROUTINE cr_consumer(void *_sema) { } int main() { - cr_sema_t sema = {0}; + cr_sema_t sema = {}; printf("== test 1 =========================================\n"); coroutine_add("first", cr_first, &sema); |