From b7197ac8c51088a441f366000ee1001650b93f9e Mon Sep 17 00:00:00 2001 From: "Justin R. Cutler" Date: Fri, 1 Apr 2016 09:12:14 -0400 Subject: [PATCH] Variable scope cleanup --- test/coroutine.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/coroutine.c b/test/coroutine.c index a3a8a4a..bf031f9 100644 --- a/test/coroutine.c +++ b/test/coroutine.c @@ -62,9 +62,8 @@ static int run(void) goto fail; } - void *data; - while (!(coroutine_ended(fibonacci) || coroutine_ended(output))) { + void *data; data = coroutine_resume(fibonacci, NULL); data = coroutine_resume(output, data); }