summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lem.c6
-rw-r--r--lem.h2
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);