aboutsummaryrefslogtreecommitdiff
path: root/sys/libn/test.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/libn/test.c')
-rw-r--r--sys/libn/test.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/libn/test.c b/sys/libn/test.c
index 5ee230f..3a21a71 100644
--- a/sys/libn/test.c
+++ b/sys/libn/test.c
@@ -63,7 +63,7 @@ test·coro()
printf("Starting singleton test\n");
for (i = 0; i < arrlen(c); i++) {
- c[i] = coro·new(0, &printtest);
+ c[i] = coro·make(0, &printtest);
}
/* Singleton test */
@@ -91,12 +91,12 @@ test·coro()
Coro *cur, *seq[50];
num = 2;
- seq[0] = coro·new(4096, &sequence);
+ seq[0] = coro·make(4096, &sequence);
cur = *seq;
num = coro·yield(cur, num);
for (i = 1; i < arrlen(seq); i++) {
- seq[i] = coro·new(4096, &filter);
+ seq[i] = coro·make(4096, &filter);
struct PrimeMsg msg = {
.seq = cur,
.p = num,