projects
/
project
/
libubox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
add declarations for lua{open,close}_uloop to avoid warnings
[project/libubox.git]
/
lua
/
uloop.c
diff --git
a/lua/uloop.c
b/lua/uloop.c
index 900e14061c54ed9387deeb2aa02c2c86ecf4ccc8..51f53c210f9786f604978c3e830bc74ee4790cee 100644
(file)
--- a/
lua/uloop.c
+++ b/
lua/uloop.c
@@
-226,6
+226,10
@@
static luaL_reg uloop_func[] = {
{NULL, NULL},
};
+/* avoid warnings about missing declarations */
+int luaopen_uloop(lua_State *L);
+int luaclose_uloop(lua_State *L);
+
int luaopen_uloop(lua_State *L)
{
state = L;