aboutsummaryrefslogtreecommitdiffstats
path: root/epan
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2022-11-08 08:54:16 -0800
committerGerald Combs <gerald@wireshark.org>2022-11-08 08:54:16 -0800
commitb662f565f045fb1a778d409c16a2d8a3a12cdc23 (patch)
tree287948abda070efbc536e50f11e4016fe29a3158 /epan
parent526ccef5f427a1f8ce51a7ca4c75270acf710cce (diff)
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; ^ ```
Diffstat (limited to 'epan')
-rw-r--r--epan/dissectors/packet-bpdu.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/epan/dissectors/packet-bpdu.c b/epan/dissectors/packet-bpdu.c
index a49acf264d..734e9831bf 100644
--- a/epan/dissectors/packet-bpdu.c
+++ b/epan/dissectors/packet-bpdu.c
@@ -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;
const gchar *msti_regional_root_mac_str;
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 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);
/* MSTI messages */
offset = BPDU_MSTI;
- msti = 1;
msti_length_remaining = total_msti_length;
while (msti_length_remaining > 0) {
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;
break;
}
- msti++;
}
if (protocol_version_identifier >= 4 && version_1_length == 0