From 6d8e42ec0e7f5e831ea5c8127a8fa7b7c38f2659 Mon Sep 17 00:00:00 2001 From: Emil Renner Berthing Date: Mon, 27 Jun 2011 17:16:33 +0200 Subject: lem: use correct syntax for no arguments --- lem.c | 6 +++--- lem.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lem.c b/lem.c index 43bc97b..2923fae 100644 --- a/lem.c +++ b/lem.c @@ -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); diff --git a/lem.h b/lem.h index a3de0f9..220f5f8 100644 --- a/lem.h +++ b/lem.h @@ -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); -- cgit v1.2.1