summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Kaiser <wireshark@kaiser.cx>2017-04-17 17:55:09 +0200
committerMartin Kaiser <wireshark@kaiser.cx>2017-04-17 17:55:49 +0000
commit07e2f65b9627f9b37648f4a9dd310d9e18bac223 (patch)
treefea7f2a474b12c34c512e026acdd6a4a50f9437e
parent6d67dff65698439c110689efb4514b39292a9b1a (diff)
downloadwireshark-07e2f65b9627f9b37648f4a9dd310d9e18bac223.tar.gz
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 <wireshark@kaiser.cx> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Martin Kaiser <wireshark@kaiser.cx>
-rw-r--r--epan/packet.c4
1 files changed, 2 insertions, 2 deletions
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,