From 552ee02a937362eb3a1039b348d800d35635bd4f Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Mon, 31 Oct 2005 02:21:02 +0000 Subject: Get rid of an unused variable, and declare a variable that points into a tvbuff's data const. svn path=/trunk/; revision=16368 --- epan/dissectors/packet-ieee80211.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'epan/dissectors/packet-ieee80211.c') diff --git a/epan/dissectors/packet-ieee80211.c b/epan/dissectors/packet-ieee80211.c index bb00830adf..e649f6cab3 100644 --- a/epan/dissectors/packet-ieee80211.c +++ b/epan/dissectors/packet-ieee80211.c @@ -942,7 +942,7 @@ dissect_vendor_ie_wpawme(proto_tree * ietree, proto_tree * tree, tvbuff_t * tvb, int offset, guint32 tag_len, const guint8 *tag_val) { guint32 tag_val_off = 0; - char out_buff[SHORT_STR], *pos; + char out_buff[SHORT_STR]; guint i; /* Wi-Fi Protected Access (WPA) Information Element */ @@ -1321,7 +1321,7 @@ static int add_tagged_field (packet_info * pinfo, proto_tree * tree, tvbuff_t * tvb, int offset) { guint32 oui; - guint8 *tag_val; + const guint8 *tag_val; const guint8 *tag_data_ptr; guint32 tag_no, tag_len; unsigned int i; -- cgit v1.2.3