diff options
Diffstat (limited to 'epan/value_string.c')
-rw-r--r-- | epan/value_string.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/epan/value_string.c b/epan/value_string.c index e7fb76978e..36e2e0dd1c 100644 --- a/epan/value_string.c +++ b/epan/value_string.c @@ -1,23 +1,23 @@ /* value_string.c * Routines for value_strings * - * $Id: value_string.c,v 1.3 2001/09/14 07:23:33 guy Exp $ + * $Id: value_string.c,v 1.4 2002/08/28 20:40:45 jmayer Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> * Copyright 1998 Gerald Combs * - * + * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. @@ -49,9 +49,9 @@ val_to_str(guint32 val, const value_string *vs, const char *fmt) { return ret; if (cur == &str[0][0]) { cur = &str[1][0]; - } else if (cur == &str[1][0]) { + } else if (cur == &str[1][0]) { cur = &str[2][0]; - } else { + } else { cur = &str[0][0]; } snprintf(cur, 64, fmt, val); @@ -63,7 +63,7 @@ val_to_str(guint32 val, const value_string *vs, const char *fmt) { gchar* match_strval(guint32 val, const value_string *vs) { gint i = 0; - + while (vs[i].strptr) { if (vs[i].value == val) return(vs[i].strptr); |