aboutsummaryrefslogtreecommitdiffstats
path: root/epan/wslua/wslua_proto.c
diff options
context:
space:
mode:
Diffstat (limited to 'epan/wslua/wslua_proto.c')
-rw-r--r--epan/wslua/wslua_proto.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/wslua/wslua_proto.c b/epan/wslua/wslua_proto.c
index 2e32f9e715..3b36a49d36 100644
--- a/epan/wslua/wslua_proto.c
+++ b/epan/wslua/wslua_proto.c
@@ -855,8 +855,8 @@ PROTOFIELD_OTHER(oid,FT_OID)
PROTOFIELD_OTHER(bool,FT_BOOLEAN)
-WSLUA_METAMETHOD ProtoField_tostring(lua_State* L) {
- /* Returns a string w/ info about a protofiled (for debugging purposes) */
+WSLUA_METAMETHOD ProtoField__tostring(lua_State* L) {
+ /* Returns a string with info about a protofield (for debugging purposes) */
ProtoField f = checkProtoField(L,1);
gchar* s = ep_strdup_printf("ProtoField(%i): %s %s %s %s %p %.8x %s",f->hfid,f->name,f->abbr,ftenum_to_string(f->type),base_to_string(f->base),(void *)f->vs,f->mask,f->blob);
@@ -920,8 +920,8 @@ static const luaL_reg ProtoField_methods[] = {
};
static const luaL_reg ProtoField_meta[] = {
+ {"__tostring", ProtoField__tostring },
{"__gc", ProtoField_gc },
- {"__tostring", ProtoField_tostring },
{ NULL, NULL }
};