diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2001-01-16 23:02:20 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2001-01-16 23:02:20 +0000 |
commit | 0190aee31667b3d4380b062b4cda3c065e2ffe60 (patch) | |
tree | 6fabe9cdce3bc598590e297d403a09380079369e /packet-wsp.c | |
parent | 1771e64df9204e7001b8b50e437d6f48249c3b66 (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.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@2906 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-wsp.c')
-rw-r--r-- | packet-wsp.c | 6 |
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 ); }; |