aboutsummaryrefslogtreecommitdiffstats
path: root/epan/value_string.c
diff options
context:
space:
mode:
authorEvan Huus <eapache@gmail.com>2013-03-30 00:11:00 +0000
committerEvan Huus <eapache@gmail.com>2013-03-30 00:11:00 +0000
commit178fc8852af82c4f4639f31d2764c6a8d9f59f99 (patch)
treea15acb94f56ebf292ed56570a4ed10e114d50340 /epan/value_string.c
parentd155b0da1965575060da94a1e13558e5bf2d67df (diff)
Note to self: stop using 'index' as a variable name, it triggers -Wshadow on
some platforms. You'd think I'd have learned by now. svn path=/trunk/; revision=48646
Diffstat (limited to 'epan/value_string.c')
-rw-r--r--epan/value_string.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/epan/value_string.c b/epan/value_string.c
index b81679be54..371b054ace 100644
--- a/epan/value_string.c
+++ b/epan/value_string.c
@@ -111,12 +111,12 @@ try_val_to_str(const guint32 val, const value_string *vs)
guint32
str_to_val(const gchar *val, const value_string *vs, const guint32 err_val)
{
- gint index;
+ gint i;
- index = str_to_val_idx(val, vs);
+ i = str_to_val_idx(val, vs);
- if (index >= 0) {
- return vs[index].value;
+ if (i >= 0) {
+ return vs[i].value;
}
return err_val;