aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2012-04-16 08:39:34 +0000
committerAnders Broman <anders.broman@ericsson.com>2012-04-16 08:39:34 +0000
commitfc41d4ad51432522c104d9aa6e6ddbbd30aa7096 (patch)
tree041082a78ea8de1c1f2d2c5d323b66a7148ca95e /epan/dissectors
parent9380f962a2d694183b9ce20830b5943d3ea7b7fb (diff)
From Evan Huus:
Duplicate and misplaced 'break' statements. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7106 svn path=/trunk/; revision=42091
Diffstat (limited to 'epan/dissectors')
-rw-r--r--epan/dissectors/packet-ansi_a.c2
-rw-r--r--epan/dissectors/packet-asap.c1
-rw-r--r--epan/dissectors/packet-dns.c5
-rw-r--r--epan/dissectors/packet-ieee80211.c2
-rw-r--r--epan/dissectors/packet-isakmp.c1
-rw-r--r--epan/dissectors/packet-spice.c1
6 files changed, 3 insertions, 9 deletions
diff --git a/epan/dissectors/packet-ansi_a.c b/epan/dissectors/packet-ansi_a.c
index a8943df0e9..c927a860b7 100644
--- a/epan/dissectors/packet-ansi_a.c
+++ b/epan/dissectors/packet-ansi_a.c
@@ -4549,7 +4549,7 @@ elem_cause_l3(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, guint32 o
case 7: str = "International network"; break;
case 10: str = "Network beyond interworking point"; break;
default:
- str = "Reserved"; break;
+ str = "Reserved";
break;
}
diff --git a/epan/dissectors/packet-asap.c b/epan/dissectors/packet-asap.c
index 40ba7147f4..0f5d4314eb 100644
--- a/epan/dissectors/packet-asap.c
+++ b/epan/dissectors/packet-asap.c
@@ -187,7 +187,6 @@ dissect_error_cause(tvbuff_t *cause_tvb, proto_tree *parameter_tree)
message_tvb = tvb_new_subset_remaining(cause_tvb, CAUSE_INFO_OFFSET);
dissect_asap(message_tvb, NULL, cause_tree);
break;
- break;
case INVALID_VALUES:
parameter_tvb = tvb_new_subset_remaining(cause_tvb, CAUSE_INFO_OFFSET);
dissect_parameter(parameter_tvb, cause_tree);
diff --git a/epan/dissectors/packet-dns.c b/epan/dissectors/packet-dns.c
index 7b35b03fa6..6ffc9d1cc4 100644
--- a/epan/dissectors/packet-dns.c
+++ b/epan/dissectors/packet-dns.c
@@ -1408,11 +1408,8 @@ dissect_dns_answer(tvbuff_t *tvb, int offsetx, int dns_data_offset,
int i;
emem_strbuf_t *bitnames = ep_strbuf_new_label(NULL);
- if (rr_len < 4) {
-
+ if (rr_len < 4)
goto bad_rr;
- break;
- }
wks_addr = tvb_ip_to_str(tvb, cur_offset);
if (cinfo != NULL)
col_append_fstr(cinfo, COL_INFO, " %s", wks_addr);
diff --git a/epan/dissectors/packet-ieee80211.c b/epan/dissectors/packet-ieee80211.c
index 8051351184..8887f3d86f 100644
--- a/epan/dissectors/packet-ieee80211.c
+++ b/epan/dissectors/packet-ieee80211.c
@@ -6301,8 +6301,8 @@ dissect_vendor_ie_atheros(proto_item * item _U_, proto_tree * ietree,
default:
/* No default Action */
break;
- break;
} /* End switch(subtype) */
+ break;
default:
/* No default Action */
break;
diff --git a/epan/dissectors/packet-isakmp.c b/epan/dissectors/packet-isakmp.c
index 183caf33f9..c99c09fe58 100644
--- a/epan/dissectors/packet-isakmp.c
+++ b/epan/dissectors/packet-isakmp.c
@@ -3435,7 +3435,6 @@ dissect_transform_ike2_attribute(tvbuff_t *tvb, proto_tree *transform_attr_type_
proto_tree_add_item(sub_transform_attr_type_tree, hf_isakmp_ike2_attr_key_length, tvb, offset, optlen, ENC_BIG_ENDIAN);
proto_item_append_text(transform_attr_type_item," : %d", tvb_get_ntohs(tvb, offset));
break;
- break;
default:
/* No Default Action */
break;
diff --git a/epan/dissectors/packet-spice.c b/epan/dissectors/packet-spice.c
index 7df4795213..fbd316dc4d 100644
--- a/epan/dissectors/packet-spice.c
+++ b/epan/dissectors/packet-spice.c
@@ -2227,7 +2227,6 @@ dissect_spice_playback_server(tvbuff_t *tvb, proto_tree *tree, const guint16 mes
offset += 4;
/* TODO - mode dependent, there may be more data here */
break;
- break;
case SPICE_PLAYBACK_MODE:
proto_tree_add_item(tree, hf_playback_record_mode_timstamp, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;