diff options
author | Alon Zakai <alonzakai@gmail.com> | 2014-02-18 16:37:01 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2014-02-18 16:37:01 -0800 |
commit | e76757c9213e3bd671eebf0154f379efb8659305 (patch) | |
tree | 259e27cb72cbfda7dabb67da253b0f57b5b934b9 /tests/module/test_stdin.c | |
parent | 59a81ace3c9591316cefcff0e1e4913ed8bf555b (diff) |
fix function types of main loop funcs in sockets tests
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 +} |