Get rid of an unused variable, and declare a variable that points into a
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 31 Oct 2005 02:21:02 +0000 (02:21 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 31 Oct 2005 02:21:02 +0000 (02:21 +0000)
tvbuff's data const.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@16368 f5534014-38df-0310-8fa8-9805f1628bb7

epan/dissectors/packet-ieee80211.c

index bb00830adff0284d57d186cbb0aef71bae6c2d10..e649f6cab383bc6f2c5011ef5dbd03ff51d9399d 100644 (file)
@@ -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;