diff options
author | Guy Harris <guy@alum.mit.edu> | 2000-07-30 08:11:46 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2000-07-30 08:11:46 +0000 |
commit | f9008563433d440f14c7ca61e1deb6ff49b2355f (patch) | |
tree | 64d4dbd195c90bec610a7adf0c01147f7929f176 /packet-radius.c | |
parent | 888b5a1cdb8172c5d059c7b0aa7ff6b9f3f77088 (diff) |
"rd_match_strval()" just does what "val_to_str()" does with a format
argument of "Undefined(%d)"; just use "val_to_str()" (and use "%u"
rather than "%d", as the value passed to it is unsigned).
svn path=/trunk/; revision=2177
Diffstat (limited to 'packet-radius.c')
-rw-r--r-- | packet-radius.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/packet-radius.c b/packet-radius.c index b5d5172037..0e5a01be35 100644 --- a/packet-radius.c +++ b/packet-radius.c @@ -1,7 +1,7 @@ /* packet-radius.c * Routines for RADIUS packet disassembly * - * $Id: packet-radius.c,v 1.14 2000/07/30 07:16:03 guy Exp $ + * $Id: packet-radius.c,v 1.15 2000/07/30 08:11:46 guy Exp $ * * Ethereal - Network traffic analyzer * By Johan Feyaerts @@ -499,14 +499,7 @@ guint32 totlen=0; } gchar *rd_match_strval(guint32 val, const value_string *vs) { - gchar *result; - static gchar undf[30]; - result=match_strval(val,vs); - if (result == NULL ) { - sprintf(undf,"Undefined(%d)",val); - result=undf; - } - return result; + return val_to_str(val, vs, "Undefined (%u)"); } gchar *rd_value_to_str(e_avphdr *avph,const u_char *pd, int offset) |