From 07e2f65b9627f9b37648f4a9dd310d9e18bac223 Mon Sep 17 00:00:00 2001 From: Martin Kaiser Date: Mon, 17 Apr 2017 17:55:09 +0200 Subject: Fix the description of dissector_try_uint_new(). We return the number of bytes consumed by the dissector. Change-Id: Icc22c9e033dfb11f230fb59cfb79932bc8c80548 Reviewed-on: https://code.wireshark.org/review/21164 Petri-Dish: Martin Kaiser Tested-by: Petri Dish Buildbot Reviewed-by: Martin Kaiser --- epan/packet.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'epan/packet.c') diff --git a/epan/packet.c b/epan/packet.c index 5a62a1cbf6..bdc9917344 100644 --- a/epan/packet.c +++ b/epan/packet.c @@ -1285,8 +1285,8 @@ dissector_reset_uint(const char *name, const guint32 pattern) } /* Look for a given value in a given uint dissector table and, if found, - call the dissector with the arguments supplied, and return TRUE, - otherwise return FALSE. */ + call the dissector with the arguments supplied, and return the number + of bytes consumed by the dissector, otherwise return 0. */ int dissector_try_uint_new(dissector_table_t sub_dissectors, const guint32 uint_val, -- cgit v1.2.3