STP: Remove an unused variable.
Fix ``` epan/dissectors/packet-bpdu.c:327:36: error: variable 'msti' set but not used [-Werror,-Wunused-but-set-variable] int total_msti_length, offset, msti, msti_format; ^ ```
This commit is contained in:
parent
526ccef5f4
commit
b662f565f0
|
@ -324,7 +324,7 @@ dissect_bpdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gboolean is_bp
|
||||||
guint32 msti_regional_root_mstid, msti_regional_root_priority;
|
guint32 msti_regional_root_mstid, msti_regional_root_priority;
|
||||||
const gchar *msti_regional_root_mac_str;
|
const gchar *msti_regional_root_mac_str;
|
||||||
guint16 msti_bridge_identifier_priority, msti_port_identifier_priority;
|
guint16 msti_bridge_identifier_priority, msti_port_identifier_priority;
|
||||||
int total_msti_length, offset, msti, msti_format;
|
int total_msti_length, offset, msti_format;
|
||||||
int msti_length_remaining;
|
int msti_length_remaining;
|
||||||
|
|
||||||
int spt_offset = 0;
|
int spt_offset = 0;
|
||||||
|
@ -816,7 +816,6 @@ dissect_bpdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gboolean is_bp
|
||||||
BPDU_CIST_REMAINING_HOPS, 1, ENC_BIG_ENDIAN);
|
BPDU_CIST_REMAINING_HOPS, 1, ENC_BIG_ENDIAN);
|
||||||
/* MSTI messages */
|
/* MSTI messages */
|
||||||
offset = BPDU_MSTI;
|
offset = BPDU_MSTI;
|
||||||
msti = 1;
|
|
||||||
msti_length_remaining = total_msti_length;
|
msti_length_remaining = total_msti_length;
|
||||||
while (msti_length_remaining > 0) {
|
while (msti_length_remaining > 0) {
|
||||||
switch(msti_format) {
|
switch(msti_format) {
|
||||||
|
@ -904,7 +903,6 @@ dissect_bpdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gboolean is_bp
|
||||||
offset += ALT_MSTI_MESSAGE_SIZE;
|
offset += ALT_MSTI_MESSAGE_SIZE;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
msti++;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (protocol_version_identifier >= 4 && version_1_length == 0
|
if (protocol_version_identifier >= 4 && version_1_length == 0
|
||||||
|
|
Loading…
Reference in New Issue