aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-mikey.c
diff options
context:
space:
mode:
authorBill Meier <wmeier@newsguy.com>2011-07-15 00:13:59 +0000
committerBill Meier <wmeier@newsguy.com>2011-07-15 00:13:59 +0000
commitea9a55f1d207cff9bc6d0823ff68985cf48b8747 (patch)
treec74d12ee07131a48cad7300a1ad7adb102f2bc66 /epan/dissectors/packet-mikey.c
parent4dacef1ff9db2eb0d328d8fe3b475675d8269e76 (diff)
Fix gcc 4.6 "set but not used [-Wunused-but-set-variable]" warnings.
svn path=/trunk/; revision=38035
Diffstat (limited to 'epan/dissectors/packet-mikey.c')
-rw-r--r--epan/dissectors/packet-mikey.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/epan/dissectors/packet-mikey.c b/epan/dissectors/packet-mikey.c
index 42f1fadd3e..7291bf8b7d 100644
--- a/epan/dissectors/packet-mikey.c
+++ b/epan/dissectors/packet-mikey.c
@@ -589,10 +589,6 @@ mikey_dissector_lookup(const struct mikey_dissector_entry *map, int type)
static void
add_next_payload(tvbuff_t *tvb, proto_tree *tree, int offset)
{
- guint8 next_payload;
-
- next_payload = tvb_get_guint8(tvb, offset);
-
proto_tree_add_item(tree, hf_mikey[POS_NEXT_PAYLOAD], tvb, offset, 1, FALSE);
}
@@ -754,10 +750,8 @@ dissect_payload_pke(mikey_t *mikey _U_, tvbuff_t *tvb, packet_info *pinfo _U_, p
{
int offset = 0;
guint16 length;
- guint8 pke_c;
tvb_ensure_bytes_exist(tvb, offset+0, 3);
- pke_c = (tvb_get_guint8(tvb, offset+1) & 0xc0) >> 6;
length = ((tvb_get_guint8(tvb, offset+1) & 0x3f) << 8) |
tvb_get_guint8(tvb, offset+2);
@@ -821,10 +815,8 @@ dissect_payload_sign(mikey_t *mikey _U_, tvbuff_t *tvb, packet_info *pinfo _U_,
{
int offset = 0;
guint16 length;
- guint8 s_type;
tvb_ensure_bytes_exist(tvb, offset+0, 2);
- s_type = (tvb_get_guint8(tvb, offset+0) & 0xf0) >> 4;
length = ((tvb_get_guint8(tvb, offset+0) & 0x0f) << 8) + tvb_get_guint8(tvb, offset+1);
if (tree) {