From 7538ea51122b340c1b8c0b5a9be4d5e1f84ba566 Mon Sep 17 00:00:00 2001 From: Michael Theall Date: Sat, 16 Jan 2016 00:41:49 -0600 Subject: [PATCH] Fix linux build warning --- source/main.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source/main.c b/source/main.c index 1695ab3..241ba9e 100644 --- a/source/main.c +++ b/source/main.c @@ -29,8 +29,9 @@ loop(loop_status_t (*callback)(void)) return LOOP_EXIT; #else - for(;;) - callback(); + while(status == LOOP_CONTINUE) + status = callback(); + return status; #endif }