diff options
author | Luke T. Shumaker <lukeshu@lukeshu.com> | 2025-05-12 14:26:21 -0600 |
---|---|---|
committer | Luke T. Shumaker <lukeshu@lukeshu.com> | 2025-05-12 14:26:21 -0600 |
commit | 811d9700e1414dae3357361b3ca565f673f63b08 (patch) | |
tree | ce628075a2ae59d5362d2662465c918f57e81607 /libcr/coroutine.c | |
parent | cd5e55ebb7d5a51c0a8bd62137ab75a0f6ff1356 (diff) | |
parent | b4a081932338f65aa87aeba5008463feb0a78519 (diff) |
Diffstat (limited to 'libcr/coroutine.c')
-rw-r--r-- | libcr/coroutine.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libcr/coroutine.c b/libcr/coroutine.c index cf63122..4c0b7e8 100644 --- a/libcr/coroutine.c +++ b/libcr/coroutine.c @@ -457,7 +457,7 @@ static cr_plat_jmp_buf coroutine_gdb_env; * coroutine_ringbuf queue. */ -static struct coroutine coroutine_table[CONFIG_COROUTINE_NUM] = {0}; +static struct coroutine coroutine_table[CONFIG_COROUTINE_NUM] = {}; static struct { /* tail == head means empty */ /* buf[tail] is the next thing to run */ @@ -468,7 +468,7 @@ static struct { * we don't have to worry about funny wrap-around behavior * when head or tail overflow. */ cid_t buf[LM_NEXT_POWER_OF_2(CONFIG_COROUTINE_NUM)]; -} coroutine_ringbuf = {0}; +} coroutine_ringbuf = {}; static cid_t coroutine_running = 0; static size_t coroutine_cnt = 0; @@ -665,7 +665,7 @@ void coroutine_main(void) { VALGRIND_STACK_DEREGISTER(coroutine_table[coroutine_running-1].stack_id); #endif free(coroutine_table[coroutine_running-1].stack); - coroutine_table[coroutine_running-1] = (struct coroutine){0}; + coroutine_table[coroutine_running-1] = (struct coroutine){}; coroutine_cnt--; } coroutine_running = 0; |