diff options
author | Emil Renner Berthing <esmil@mailme.dk> | 2011-06-27 17:16:33 +0200 |
---|---|---|
committer | Emil Renner Berthing <esmil@mailme.dk> | 2011-06-27 17:26:21 +0200 |
commit | 6d8e42ec0e7f5e831ea5c8127a8fa7b7c38f2659 (patch) | |
tree | 9f306a0e6a6b05f84b8054b1b697959c56570b6b | |
parent | 2b706e899806ee3ae7f7eebe085fbbf7837362c0 (diff) | |
download | lem-6d8e42ec0e7f5e831ea5c8127a8fa7b7c38f2659.tar.gz lem-6d8e42ec0e7f5e831ea5c8127a8fa7b7c38f2659.tar.xz lem-6d8e42ec0e7f5e831ea5c8127a8fa7b7c38f2659.zip |
lem: use correct syntax for no arguments
-rw-r--r-- | lem.c | 6 | ||||
-rw-r--r-- | lem.h | 2 |
2 files changed, 4 insertions, 4 deletions
@@ -69,7 +69,7 @@ static lua_State *L; static struct lem_runqueue rq; static -void oom() +void oom(void) { static const char e[] = "Out of memory\n"; @@ -93,7 +93,7 @@ lem_xmalloc(size_t size) } static int -ignore_sigpipe() +ignore_sigpipe(void) { struct sigaction act; @@ -115,7 +115,7 @@ ignore_sigpipe() } lua_State * -lem_newthread() +lem_newthread(void) { lua_State *T = lua_newthread(L); @@ -30,7 +30,7 @@ extern struct ev_loop *lem_loop; #endif void *lem_xmalloc(size_t size); -lua_State *lem_newthread(); +lua_State *lem_newthread(void); void lem_forgetthread(lua_State *T); void lem_sethandler(lua_State *T); void lem_queue(lua_State *T, int nargs); |