aboutsummaryrefslogtreecommitdiffstats
path: root/epan/wslua/wslua_proto.c
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2014-06-15 19:50:34 +0200
committerStig Bjørlykke <stig@bjorlykke.org>2014-06-15 17:56:25 +0000
commit235617399c6a764b8c90a638e6e659233940b34c (patch)
treeb0819e8f69ac3f776586a2f8109e339ea97be9ec /epan/wslua/wslua_proto.c
parentb3054c2c5fe5beb3511d72e39df62b4d2b65b800 (diff)
Fix documentation for DissectorTable_get_dissector
Change-Id: Ic8db06249c6326505b7f5c4518c3af2c6961066a Reviewed-on: https://code.wireshark.org/review/2234 Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
Diffstat (limited to 'epan/wslua/wslua_proto.c')
-rw-r--r--epan/wslua/wslua_proto.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/epan/wslua/wslua_proto.c b/epan/wslua/wslua_proto.c
index 0cb67e01e0..8ac9c1de4a 100644
--- a/epan/wslua/wslua_proto.c
+++ b/epan/wslua/wslua_proto.c
@@ -2545,7 +2545,7 @@ WSLUA_METHOD DissectorTable_get_dissector (lua_State *L) {
/*
Try to obtain a dissector from a table.
*/
-#define WSLUA_ARG_DissectorTable_try_PATTERN 2 /* The pattern to be matched (either an integer or a string depending on the table's type). */
+#define WSLUA_ARG_DissectorTable_get_dissector_PATTERN 2 /* The pattern to be matched (either an integer or a string depending on the table's type). */
DissectorTable dt = checkDissectorTable(L,1);
ftenum_t type;
@@ -2556,16 +2556,16 @@ WSLUA_METHOD DissectorTable_get_dissector (lua_State *L) {
type = get_dissector_table_selector_type(dt->name);
if (type == FT_STRING) {
- const gchar* pattern = luaL_checkstring(L,WSLUA_ARG_DissectorTable_try_PATTERN);
+ const gchar* pattern = luaL_checkstring(L,WSLUA_ARG_DissectorTable_get_dissector_PATTERN);
if (!pattern) {
- WSLUA_ARG_ERROR(DissectorTable_try,PATTERN,"must be a string");
+ WSLUA_ARG_ERROR(DissectorTable_get_dissector,PATTERN,"must be a string");
return 0;
}
handle = dissector_get_string_handle(dt->table,pattern);
} else if ( type == FT_UINT32 || type == FT_UINT16 || type == FT_UINT8 || type == FT_UINT24 ) {
- int port = luaL_checkint(L, WSLUA_ARG_DissectorTable_try_PATTERN);
+ int port = luaL_checkint(L, WSLUA_ARG_DissectorTable_get_dissector_PATTERN);
handle = dissector_get_uint_handle(dt->table,port);
}