aboutsummaryrefslogtreecommitdiffstats
path: root/epan/wslua/wslua_listener.c
diff options
context:
space:
mode:
authorJaap Keuter <jaap.keuter@xs4all.nl>2008-04-25 18:59:20 +0000
committerJaap Keuter <jaap.keuter@xs4all.nl>2008-04-25 18:59:20 +0000
commita923b5491c90bd15ec4a81d885b3a66e94b3f0c7 (patch)
treedd4ce443080903390045389c1cd5d87f3eb5bc09 /epan/wslua/wslua_listener.c
parent2bce8b248c38b83e0fd711b821efcd90d0147230 (diff)
From: Márton Németh:
The luaL_reg structure consists of two pointers: char* and a pointer to a function. The last entry should also reflect this: it should be { NULL, NULL } instead of { 0, 0 }. svn path=/trunk/; revision=25175
Diffstat (limited to 'epan/wslua/wslua_listener.c')
-rw-r--r--epan/wslua/wslua_listener.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/wslua/wslua_listener.c b/epan/wslua/wslua_listener.c
index 09bfd4be59..800956d421 100644
--- a/epan/wslua/wslua_listener.c
+++ b/epan/wslua/wslua_listener.c
@@ -294,13 +294,13 @@ static int Listener_newindex(lua_State* L) {
static const luaL_reg Listener_methods[] = {
{"new", Listener_new},
{"remove", Listener_remove},
- {0, 0}
+ { NULL, NULL }
};
static const luaL_reg Listener_meta[] = {
{"__tostring", Listener_tostring},
{"__newindex", Listener_newindex},
- {0, 0}
+ { NULL, NULL }
};
int Listener_register(lua_State* L) {