aboutsummaryrefslogtreecommitdiffstats
path: root/packet-wsp.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2001-01-16 23:02:20 +0000
committerGuy Harris <guy@alum.mit.edu>2001-01-16 23:02:20 +0000
commit6bdc82fe180e1157326bc572ef7d78241740bc9b (patch)
tree6fabe9cdce3bc598590e297d403a09380079369e /packet-wsp.c
parentcf611f7f63bcf7b0b067fde5845fc5c2b2b01037 (diff)
The PDU type of a WSP packet is presumably not signed, so assign it to a
"guint8", not a "char". Do not use "match_strval()" unless you're prepared to check whether it returns NULL and do something appropriate if it does so; instead, use "val_to_str()", and let *it* worry about the value passed to it not having a corresponding string. svn path=/trunk/; revision=2906
Diffstat (limited to 'packet-wsp.c')
-rw-r--r--packet-wsp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/packet-wsp.c b/packet-wsp.c
index 5bc5e7ed38..9beaf89018 100644
--- a/packet-wsp.c
+++ b/packet-wsp.c
@@ -3,7 +3,7 @@
*
* Routines to dissect WSP component of WAP traffic.
*
- * $Id: packet-wsp.c,v 1.9 2001/01/09 06:31:45 guy Exp $
+ * $Id: packet-wsp.c,v 1.10 2001/01/16 23:02:20 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -385,7 +385,7 @@ dissect_wsp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
char szInfo[ 50 ];
int cchInfo;
- char pdut;
+ guint8 pdut;
guint count = 0;
guint value = 0;
guint uriLength = 0;
@@ -439,7 +439,7 @@ dissect_wsp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
/* Develop the string to put in the Info column */
cchInfo = snprintf( szInfo, sizeof( szInfo ), "WSP %s",
- match_strval (( int )pdut, vals_pdu_type));
+ val_to_str (pdut, vals_pdu_type, "Unknown PDU type (0x%02x)"));
if (check_col(fdata, COL_INFO)) {
col_add_str(fdata, COL_INFO, szInfo );
};