diff options
Diffstat (limited to 'tests/module/test_stdin.c')
-rw-r--r-- | tests/module/test_stdin.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/module/test_stdin.c b/tests/module/test_stdin.c index 4838d466..319c686c 100644 --- a/tests/module/test_stdin.c +++ b/tests/module/test_stdin.c @@ -9,7 +9,7 @@ int line = 0; -void main_loop(void *arg) +void main_loop() { char str[10] = {0}; int ret; @@ -46,12 +46,12 @@ int main(int argc, char const *argv[]) // SM shell doesn't implement an event loop and therefor doesn't support // emscripten_set_main_loop. However, its stdin reads are sync so it // should exit out after calling main_loop once. - main_loop(NULL); + main_loop(); #if EMSCRIPTEN emscripten_set_main_loop(main_loop, 60, 0); #else - while (1) main_loop(NULL); sleep(1); + while (1) main_loop(); sleep(1); #endif return 0; -}
\ No newline at end of file +} |