summaryrefslogtreecommitdiffhomepage
path: root/misc/examples/coread.c
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2023-02-26 20:16:01 +0100
committerTyge Løvset <[email protected]>2023-02-26 20:16:01 +0100
commit1871ee8e9b4ca4edde387be973035c259fc9191f (patch)
tree1efe5529a46099d61fd1ae7b89f15f08b78064bf /misc/examples/coread.c
parent00313bfa4f448253ac95640ed962130ec3d14b19 (diff)
downloadSTC-modified-1871ee8e9b4ca4edde387be973035c259fc9191f.tar.gz
STC-modified-1871ee8e9b4ca4edde387be973035c259fc9191f.zip
Addition to coroutine.h. Allow dynamic allocation of context.
Diffstat (limited to 'misc/examples/coread.c')
-rw-r--r--misc/examples/coread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/examples/coread.c b/misc/examples/coread.c
index 89e06b71..3d49c5df 100644
--- a/misc/examples/coread.c
+++ b/misc/examples/coread.c
@@ -35,7 +35,7 @@ int main(void) {
printf("%3d %s\n", ++n, cstr_str(&z.line));
// stop after 15 lines:
- if (n == 15) cco_stop(&z);
+ if (n == 15) (void)cco_stop(&z);
}
printf("state %d\n", z.cco_state);
}