aboutsummaryrefslogtreecommitdiffstats
path: root/epan/wslua/wslua_proto.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_proto.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_proto.c')
-rw-r--r--epan/wslua/wslua_proto.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/epan/wslua/wslua_proto.c b/epan/wslua/wslua_proto.c
index 328ba4e5d9..28cf501843 100644
--- a/epan/wslua/wslua_proto.c
+++ b/epan/wslua/wslua_proto.c
@@ -906,13 +906,13 @@ static const luaL_reg ProtoField_methods[] = {
{"ubytes",ProtoField_ubytes},
{"guid",ProtoField_guid},
{"oid",ProtoField_oid},
- {0,0}
+ { NULL, NULL }
};
static const luaL_reg ProtoField_meta[] = {
{"__gc", ProtoField_gc },
{"__tostring", ProtoField_tostring },
- {0, 0}
+ { NULL, NULL }
};
int ProtoField_register(lua_State* L) {
@@ -1215,7 +1215,7 @@ static const luaL_reg Proto_meta[] = {
{"__tostring", Proto_tostring},
{"__index", Proto_index},
{"__newindex", Proto_newindex},
- {0, 0}
+ { NULL, NULL }
};
int Proto_register(lua_State* L) {
@@ -1340,12 +1340,12 @@ WSLUA_METAMETHOD Dissector_tostring(lua_State* L) {
static const luaL_reg Dissector_methods[] = {
{"get", Dissector_get },
{"call", Dissector_call },
- {0,0}
+ { NULL, NULL }
};
static const luaL_reg Dissector_meta[] = {
{"__tostring", Dissector_tostring},
- {0, 0}
+ { NULL, NULL }
};
int Dissector_register(lua_State* L) {
@@ -1632,12 +1632,12 @@ static const luaL_reg DissectorTable_methods[] = {
{"remove", DissectorTable_remove },
{"try", DissectorTable_try },
{"get_dissector", DissectorTable_get_dissector },
- {0,0}
+ { NULL, NULL }
};
static const luaL_reg DissectorTable_meta[] = {
{"__tostring", DissectorTable_tostring},
- {0, 0}
+ { NULL, NULL }
};
int DissectorTable_register(lua_State* L) {