aboutsummaryrefslogtreecommitdiffstats
path: root/epan/value_string.c
diff options
context:
space:
mode:
authorBill Meier <wmeier@newsguy.com>2010-09-17 04:51:21 +0000
committerBill Meier <wmeier@newsguy.com>2010-09-17 04:51:21 +0000
commit7219ee2a49ac2da22f3dcf77b0f343a9b0d61b9c (patch)
tree154454d44e42507215001b8a89a7bc65486dccbb /epan/value_string.c
parentd643e0366ade6d97ef936deb67bb0cf55a4c765d (diff)
downloadwireshark-7219ee2a49ac2da22f3dcf77b0f343a9b0d61b9c.tar.gz
wireshark-7219ee2a49ac2da22f3dcf77b0f343a9b0d61b9c.tar.bz2
wireshark-7219ee2a49ac2da22f3dcf77b0f343a9b0d61b9c.zip
Use val_to_str_ext() & friends to access sminmpec_values[];
Also: packet-nhrp.c: #include sminmpec.h not req'd; svn path=/trunk/; revision=34143
Diffstat (limited to 'epan/value_string.c')
-rw-r--r--epan/value_string.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/epan/value_string.c b/epan/value_string.c
index b5d12a8998..91c22bbda7 100644
--- a/epan/value_string.c
+++ b/epan/value_string.c
@@ -158,12 +158,11 @@ match_strval_ext_init(const guint32 val, value_string_ext *vse)
const value_string *vals = vse->vals;
/* The way matching of value is done in a value_string:
- * 0 default, value will be set in proto_register_field_init()
- * 1 Sequential search (as in a normal value string)
+ * 0 Sequential search (as in a normal value string)
+ * 1 Binary search, the values MUST be in numerical order.
* 2 The value used as an index(the value string MUST have all values 0-max defined)
- * 3 Binary search, the valuse MUST be in numerical order.
*/
- enum { VS_SEARCH = 0, VS_INDEX, VS_BIN_TREE } type = VS_INDEX;
+ enum { VS_SEARCH = 0, VS_BIN_TREE, VS_INDEX } type = VS_INDEX;
guint32 prev = 0;
guint i;