aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorEvan Huus <eapache@gmail.com>2013-09-28 02:41:49 +0000
committerEvan Huus <eapache@gmail.com>2013-09-28 02:41:49 +0000
commitca52337c437f75619206086fab008a1bccf25939 (patch)
tree06ed25ccc09f80f0266a99008ec507be594e319f /plugins
parente5379de1261b0f36a7a7900ba0137a9aae0cd9b6 (diff)
Fix various warnings in (hopefully) the right ways.
svn path=/trunk/; revision=52236
Diffstat (limited to 'plugins')
-rw-r--r--plugins/wimax/msg_dcd.c4
-rw-r--r--plugins/wimax/msg_reg_req.c1
-rw-r--r--plugins/wimax/msg_rep.c2
-rw-r--r--plugins/wimax/msg_rng_req.c2
-rw-r--r--plugins/wimax/msg_rng_rsp.c1
-rw-r--r--plugins/wimax/packet-wmx.c4
-rw-r--r--plugins/wimax/wimax_utils.c3
7 files changed, 5 insertions, 12 deletions
diff --git a/plugins/wimax/msg_dcd.c b/plugins/wimax/msg_dcd.c
index 9d50652f5f..1d2942177c 100644
--- a/plugins/wimax/msg_dcd.c
+++ b/plugins/wimax/msg_dcd.c
@@ -607,7 +607,7 @@ static void dissect_mac_mgmt_msg_dcd_decoder(tvbuff_t *tvb, packet_info *pinfo,
}
case DCD_TLV_T_33_ASR:
{
- tlv_tree = add_tlv_subtree(&tlv_info, dcd_tree, hf_dcd_tlv_t_33_asr, tvb, offset-tlv_value_offset, ENC_BIG_ENDIAN);
+ tlv_item = add_tlv_subtree(&tlv_info, dcd_tree, hf_dcd_tlv_t_33_asr, tvb, offset-tlv_value_offset, ENC_BIG_ENDIAN);
tlv_tree = proto_item_add_subtree(tlv_item, ett_mac_mgmt_msg_dcd_decoder);
tlv_item = proto_tree_add_item(tlv_tree, hf_dcd_tlv_t_33_asr_m, tvb, offset, 1, ENC_BIG_ENDIAN);
proto_item_append_text(tlv_item, " frames");
@@ -1253,4 +1253,4 @@ void proto_reg_handoff_mac_mgmt_msg_dcd(void)
dcd_handle = create_dissector_handle(dissect_mac_mgmt_msg_dcd_decoder, proto_mac_mgmt_msg_dcd_decoder);
dissector_add_uint("wmx.mgmtmsg", MAC_MGMT_MSG_DCD, dcd_handle);
-} \ No newline at end of file
+}
diff --git a/plugins/wimax/msg_reg_req.c b/plugins/wimax/msg_reg_req.c
index d8a18871c1..752fe15c42 100644
--- a/plugins/wimax/msg_reg_req.c
+++ b/plugins/wimax/msg_reg_req.c
@@ -219,7 +219,6 @@ void dissect_extended_tlv(proto_tree *reg_req_tree, gint tlv_type, tvbuff_t *tvb
{
proto_item *tlv_item;
proto_tree *tlv_tree;
- proto_tree *sub_tree = NULL;
guint tvb_len;
tlv_info_t tlv_info;
guint tlv_end;
diff --git a/plugins/wimax/msg_rep.c b/plugins/wimax/msg_rep.c
index 50b7704ab1..0c66e66c91 100644
--- a/plugins/wimax/msg_rep.c
+++ b/plugins/wimax/msg_rep.c
@@ -499,7 +499,7 @@ static void dissect_mac_mgmt_msg_rep_rsp_decoder(tvbuff_t *tvb, packet_info *pin
db_val = tvb_get_guint8(tvb, offset + tlv_offset) - 20;
if (db_val > 37)
db_val = 37;
- proto_item_append_text(ti, " (%d dBm)", db_val);
+ proto_item_append_text(ti_item, " (%d dBm)", db_val);
ti = proto_tree_add_item(ti_tree, hf_rep_rsp_report_type_cinr_report_deviation, tvb, (offset + tlv_offset +1), 1, ENC_BIG_ENDIAN);
db_val = tvb_get_guint8(tvb, offset + tlv_offset + 1) - 20;
if (db_val > 37)
diff --git a/plugins/wimax/msg_rng_req.c b/plugins/wimax/msg_rng_req.c
index 394691154e..5023f0fadf 100644
--- a/plugins/wimax/msg_rng_req.c
+++ b/plugins/wimax/msg_rng_req.c
@@ -287,7 +287,7 @@ static void dissect_mac_mgmt_msg_rng_req_decoder(tvbuff_t *tvb, packet_info *pin
add_tlv_subtree(&tlv_info, rng_req_tree, hf_rng_req_power_down_indicator, tvb, offset, ENC_BIG_ENDIAN);
break;
case RNG_REQ_REQUESTED_DNLK_REP_CODING_LEVEL:
- tlv_tree = add_tlv_subtree(&tlv_info, rng_req_tree, hf_rng_req_requested_rep_coding_level, tvb, offset, ENC_BIG_ENDIAN);
+ tlv_item = add_tlv_subtree(&tlv_info, rng_req_tree, hf_rng_req_requested_rep_coding_level, tvb, offset, ENC_BIG_ENDIAN);
tlv_tree = proto_item_add_subtree(tlv_item, ett_mac_mgmt_msg_rng_req_decoder);
proto_tree_add_item(tlv_tree, hf_rng_req_repetition_coding_level, tvb, tlv_offset, 1, ENC_BIG_ENDIAN);
proto_tree_add_item(tlv_tree, hf_rng_req_requested_downlink_repetition_coding_level_reserved, tvb, tlv_offset, 1, ENC_BIG_ENDIAN);
diff --git a/plugins/wimax/msg_rng_rsp.c b/plugins/wimax/msg_rng_rsp.c
index 18642461a6..9508900aea 100644
--- a/plugins/wimax/msg_rng_rsp.c
+++ b/plugins/wimax/msg_rng_rsp.c
@@ -281,7 +281,6 @@ static void dissect_mac_mgmt_msg_rng_rsp_decoder(tvbuff_t *tvb, packet_info *pin
proto_item *tlv_item = NULL;
proto_tree *rng_rsp_tree;
proto_tree *sub_tree = NULL;
- proto_tree *tlv_tree = NULL;
tlv_info_t tlv_info;
gint tlv_type;
guint tlv_len;
diff --git a/plugins/wimax/packet-wmx.c b/plugins/wimax/packet-wmx.c
index c77f87b547..e294423786 100644
--- a/plugins/wimax/packet-wmx.c
+++ b/plugins/wimax/packet-wmx.c
@@ -719,12 +719,11 @@ proto_tree *add_tlv_subtree_no_item(tlv_info_t *self, proto_tree *tree, int hfin
/* return: */
/* pointer to a proto_tree */
/*************************************************************/
-proto_tree *add_protocol_subtree(tlv_info_t *self, gint idx, proto_tree *tree, int hfindex, tvbuff_t *tvb, gint start, gint length, const char *label)
+proto_tree *add_protocol_subtree(tlv_info_t *self, gint idx, proto_tree *tree, int hfindex, tvbuff_t *tvb, gint start, gint length _U_, const char *label)
{
/* Declare local variables */
proto_tree *tlv_tree;
proto_item *tlv_item;
- guint start_of_tlv;
gint tlv_value_length, tlv_val_offset;
guint8 size_of_tlv_length_field;
guint8 tlv_type;
@@ -737,7 +736,6 @@ proto_tree *add_protocol_subtree(tlv_info_t *self, gint idx, proto_tree *tree, i
/* Retrieve the necessary TLV information */
tlv_val_offset = get_tlv_value_offset(self);
- start_of_tlv = start - tlv_val_offset;
tlv_value_length = get_tlv_length(self);
size_of_tlv_length_field = get_tlv_size_of_length(self);
tlv_type = get_tlv_type(self);
diff --git a/plugins/wimax/wimax_utils.c b/plugins/wimax/wimax_utils.c
index f0de5a3ef5..4ec011b57f 100644
--- a/plugins/wimax/wimax_utils.c
+++ b/plugins/wimax/wimax_utils.c
@@ -1711,7 +1711,6 @@ void wimax_error_parameter_set_decoder(tvbuff_t *tvb, packet_info *pinfo, proto_
gint tlv_type;
proto_item *ceps_item = NULL;
proto_tree *ceps_tree = NULL;
- proto_tree *tlv_tree = NULL;
tlv_info_t tlv_info;
/* get the tvb reported length */
@@ -2909,7 +2908,6 @@ void wimax_tek_parameters_decoder(tvbuff_t *tvb, packet_info *pinfo, proto_tree
guint offset;
guint tvb_len, tlv_len, tlv_value_offset;
gint tlv_type;
- proto_tree *tlv_tree = NULL;
tlv_info_t tlv_info;
/* get the tvb reported length */
@@ -3198,7 +3196,6 @@ void wimax_security_capabilities_decoder(tvbuff_t *tvb, packet_info *pinfo, prot
/******************************************************************/
void wimax_vendor_specific_information_decoder(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
{
- proto_tree *tlv_tree = NULL;
guint offset;
guint tvb_len, tlv_len, tlv_value_offset;
gint tlv_type;