aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-wai.c
diff options
context:
space:
mode:
authorBill Meier <wmeier@newsguy.com>2011-06-19 19:13:26 +0000
committerBill Meier <wmeier@newsguy.com>2011-06-19 19:13:26 +0000
commit26c721b7c9fb7b1001cd232d2d6bafda3448c45d (patch)
tree1ce381996b125edb67eba0cf38ce36250c251cc5 /epan/dissectors/packet-wai.c
parent0adcab9f13afbed29e63c101080ddfa0579c2ac2 (diff)
Fix gcc 4.6 "set but not used [-Wunused-but-set-variable]" warnings;
Also: whitespace cleanup. svn path=/trunk/; revision=37718
Diffstat (limited to 'epan/dissectors/packet-wai.c')
-rw-r--r--epan/dissectors/packet-wai.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/epan/dissectors/packet-wai.c b/epan/dissectors/packet-wai.c
index 9c993424d8..3711148ac1 100644
--- a/epan/dissectors/packet-wai.c
+++ b/epan/dissectors/packet-wai.c
@@ -42,7 +42,7 @@
#include <epan/reassemble.h>
#define WAI_SUB_PRE_AUTHENTICATION 0x01 /* pre-authentication start */
-#define WAI_SUB_STAKEY_REQ 0x02 /* STAKey request */
+#define WAI_SUB_STAKEY_REQ 0x02 /* STAKey request */
#define WAI_SUB_AUTH_ACTIVATION 0x03 /* authentication activation */
#define WAI_SUB_ACCESS_AUTH_REQ 0x04 /* access authentication request */
#define WAI_SUB_ACCESS_AUTH_RESP 0x05 /* access authentication response */
@@ -826,7 +826,6 @@ Figure 18 from [ref:1]
#define WAI_MESSAGE_LENGTH 12 /*Length of all fields without 'Data' field*/
#define WAI_DATA_OFFSET WAI_MESSAGE_LENGTH
guint16 version;
- guint8 type;
guint8 subtype;
guint16 length;
guint16 packet_num;
@@ -856,7 +855,6 @@ Figure 18 from [ref:1]
col_append_fstr(pinfo->cinfo, COL_INFO, "%s", subtype_name);
/* Field lengths and offsets in WAI protocol described above */
- type = tvb_get_guint8(tvb, 2);
packet_num = tvb_get_ntohs(tvb, 8);
fragment_num = tvb_get_guint8(tvb, 10);
flags = tvb_get_guint8(tvb, 11);