diff options
author | Jakub Zawadzki <darkjames-ws@darkjames.pl> | 2012-04-13 20:22:31 +0000 |
---|---|---|
committer | Jakub Zawadzki <darkjames-ws@darkjames.pl> | 2012-04-13 20:22:31 +0000 |
commit | 8a1dc57c031880fa47475539ce961df5e658aee1 (patch) | |
tree | d7fda2fde39fe510c04d5003b8b6780008472a2a /epan/dissectors | |
parent | 8fd3fcfd7879b6297f5cf622e4651cb34e658f54 (diff) |
Remove doubled semicolons and semicolons outside function.
svn path=/trunk/; revision=42053
Diffstat (limited to 'epan/dissectors')
24 files changed, 36 insertions, 37 deletions
diff --git a/epan/dissectors/packet-afp.c b/epan/dissectors/packet-afp.c index b117378f18..46124cb39a 100644 --- a/epan/dissectors/packet-afp.c +++ b/epan/dissectors/packet-afp.c @@ -4612,7 +4612,7 @@ dissect_reply_afp_spotlight(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *t proto_tree_add_item(tree, hf_afp_spotlight_returncode, tvb, offset, 4, ENC_BIG_ENDIAN); offset += 4; - tvb_get_ephemeral_stringz(tvb, offset, &len);; + tvb_get_ephemeral_stringz(tvb, offset, &len); proto_tree_add_item(tree, hf_afp_spotlight_volpath_server, tvb, offset, len, ENC_UTF_8|ENC_NA); offset += len; break; diff --git a/epan/dissectors/packet-ansi_637.c b/epan/dissectors/packet-ansi_637.c index 1e40510004..8876a28c8c 100644 --- a/epan/dissectors/packet-ansi_637.c +++ b/epan/dissectors/packet-ansi_637.c @@ -726,7 +726,7 @@ tele_param_user_data(tvbuff_t *tvb, proto_tree *tree, guint len, guint32 offset) for (i=0; i < num_fields; i++) { oct = tvb_get_guint8(tvb, saved_offset); - oct2 = tvb_get_guint8(tvb, saved_offset + 1);; + oct2 = tvb_get_guint8(tvb, saved_offset + 1); ansi_637_bigbuf[i] = ((oct & 0x07) << 5) | ((oct2 & 0xf8) >> 3); saved_offset++; } @@ -753,7 +753,7 @@ tele_param_user_data(tvbuff_t *tvb, proto_tree *tree, guint len, guint32 offset) for (i=0; i < num_fields; i++) { oct = tvb_get_guint8(tvb, saved_offset); - oct2 = tvb_get_guint8(tvb, saved_offset + 1);; + oct2 = tvb_get_guint8(tvb, saved_offset + 1); ansi_637_bigbuf[i] = ((oct & 0x07) << 5) | ((oct2 & 0xf8) >> 3); saved_offset++; } diff --git a/epan/dissectors/packet-bacapp.c b/epan/dissectors/packet-bacapp.c index 095ae2a778..c732ad59e9 100644 --- a/epan/dissectors/packet-bacapp.c +++ b/epan/dissectors/packet-bacapp.c @@ -8596,7 +8596,7 @@ fVtDataRequest (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint offse { offset= fApplicationTypes (tvb, pinfo, tree,offset,"VT Session ID: "); offset = fApplicationTypes (tvb, pinfo, tree, offset, "VT New Data: "); - return fApplicationTypes (tvb, pinfo, tree,offset,"VT Data Flag: ");; + return fApplicationTypes (tvb, pinfo, tree,offset,"VT Data Flag: "); } static guint diff --git a/epan/dissectors/packet-ber.c b/epan/dissectors/packet-ber.c index 829f150612..4607d38a30 100644 --- a/epan/dissectors/packet-ber.c +++ b/epan/dissectors/packet-ber.c @@ -252,9 +252,9 @@ typedef struct _oid_user_t { char *syntax; } oid_user_t; -UAT_CSTRING_CB_DEF(oid_users, oid, oid_user_t); -UAT_CSTRING_CB_DEF(oid_users, name, oid_user_t); -UAT_VS_CSTRING_DEF(oid_users, syntax, oid_user_t, 0, ""); +UAT_CSTRING_CB_DEF(oid_users, oid, oid_user_t) +UAT_CSTRING_CB_DEF(oid_users, name, oid_user_t) +UAT_VS_CSTRING_DEF(oid_users, syntax, oid_user_t, 0, "") static oid_user_t *oid_users; static guint num_oid_users; diff --git a/epan/dissectors/packet-bgp.h b/epan/dissectors/packet-bgp.h index 586c21113c..c46ff0ec24 100644 --- a/epan/dissectors/packet-bgp.h +++ b/epan/dissectors/packet-bgp.h @@ -45,7 +45,6 @@ #define BGP_CAPABILITY 6 #define BGP_ROUTE_REFRESH_CISCO 0x80 -; /* BGP ROUTE-REFRESH message */ struct bgp_route_refresh { diff --git a/epan/dissectors/packet-cigi.c b/epan/dissectors/packet-cigi.c index 84975301e6..44a72011bf 100644 --- a/epan/dissectors/packet-cigi.c +++ b/epan/dissectors/packet-cigi.c @@ -5411,7 +5411,7 @@ cigi3_add_environmental_conditions_request(tvbuff_t *tvb, proto_tree *tree, gint offset++; proto_tree_add_item(tree, hf_cigi3_environmental_conditions_request_id, tvb, offset, 1, cigi_byte_order); - offset += 5;; + offset += 5; proto_tree_add_item(tree, hf_cigi3_environmental_conditions_request_lat, tvb, offset, 8, cigi_byte_order); offset += 8; @@ -5591,7 +5591,7 @@ cigi3_3_add_symbol_line_definition(tvbuff_t *tvb, proto_tree *tree, gint offset) proto_tree_add_item(tree, hf_cigi3_3_symbol_line_definition_stipple_pattern, tvb, offset, 2, cigi_byte_order); offset += 2; - proto_tree_add_item(tree, hf_cigi3_3_symbol_line_definition_line_width, tvb, offset, 4, cigi_byte_order);; + proto_tree_add_item(tree, hf_cigi3_3_symbol_line_definition_line_width, tvb, offset, 4, cigi_byte_order); offset += 4; proto_tree_add_item(tree, hf_cigi3_3_symbol_line_definition_stipple_pattern_length, tvb, offset, 4, cigi_byte_order); diff --git a/epan/dissectors/packet-dccp.c b/epan/dissectors/packet-dccp.c index 07460b5f96..ed978642b7 100644 --- a/epan/dissectors/packet-dccp.c +++ b/epan/dissectors/packet-dccp.c @@ -814,7 +814,7 @@ dissect_dccp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) } else { hidden_item = proto_tree_add_boolean(dccp_tree, hf_dccp_checksum_bad, - tvb, offset + 6, 2, TRUE);; + tvb, offset + 6, 2, TRUE); PROTO_ITEM_SET_HIDDEN(hidden_item); proto_tree_add_uint_format_value( dccp_tree, hf_dccp_checksum, tvb, offset + 6, 2, diff --git a/epan/dissectors/packet-dmp.c b/epan/dissectors/packet-dmp.c index a74eb31032..6485f69aba 100644 --- a/epan/dissectors/packet-dmp.c +++ b/epan/dissectors/packet-dmp.c @@ -1003,9 +1003,9 @@ static const value_string thales_ipm_id_modifier[] = { { 0, NULL } }; -UAT_VS_DEF(dmp_security_class, nation, dmp_security_class_t, 0, "None"); -UAT_DEC_CB_DEF(dmp_security_class, sec_class, dmp_security_class_t); -UAT_CSTRING_CB_DEF(dmp_security_class, name, dmp_security_class_t); +UAT_VS_DEF(dmp_security_class, nation, dmp_security_class_t, 0, "None") +UAT_DEC_CB_DEF(dmp_security_class, sec_class, dmp_security_class_t) +UAT_CSTRING_CB_DEF(dmp_security_class, name, dmp_security_class_t) static void * dmp_class_copy_cb(void *dest, const void *orig, size_t len _U_) diff --git a/epan/dissectors/packet-gmr1_bcch.c b/epan/dissectors/packet-gmr1_bcch.c index 3de2a4d374..4896acb5cf 100644 --- a/epan/dissectors/packet-gmr1_bcch.c +++ b/epan/dissectors/packet-gmr1_bcch.c @@ -855,7 +855,7 @@ CSN_DESCR_BEGIN(SI1_Block_Header_t) M_UINT (SI1_Block_Header_t, Block_Type, 1, &hf_si_block_type), M_UINT (SI1_Block_Header_t, Randomization_Period, 2, &hf_si1_randomization_period), M_UINT (SI1_Block_Header_t, Spare, 1, &hf_si_spare), -CSN_DESCR_END (SI1_Block_Header_t); +CSN_DESCR_END (SI1_Block_Header_t) static const CSN_ChoiceElement_t SI1_SegmentChoice[] = @@ -899,7 +899,7 @@ CSN_DESCR_BEGIN(SI2_Block_Header_t) M_UINT (SI2_Block_Header_t, Protocol_Version, 4, &hf_si_protocol_version), M_UINT (SI2_Block_Header_t, Block_Type, 1, &hf_si_block_type), M_UINT (SI2_Block_Header_t, Spare, 3, &hf_si_spare), -CSN_DESCR_END (SI2_Block_Header_t); +CSN_DESCR_END (SI2_Block_Header_t) static const CSN_ChoiceElement_t SI2_SegmentChoice[] = diff --git a/epan/dissectors/packet-gtpv2.c b/epan/dissectors/packet-gtpv2.c index a0452c8436..ff3cada45a 100644 --- a/epan/dissectors/packet-gtpv2.c +++ b/epan/dissectors/packet-gtpv2.c @@ -4044,7 +4044,7 @@ dissect_gtpv2_source_ident(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, /* The Source Type is Cell ID for PS handover from GERAN A/Gb mode. In this case the coding of the Source ID field * shall be same as the Octets 3 to 10 of the Cell Identifier IEI in 3GPP TS 48.018 [34]. */ - de_cell_id(tvb, tree, pinfo, offset, 8, NULL, 0);; + de_cell_id(tvb, tree, pinfo, offset, 8, NULL, 0); break; case 1: /* The Source Type is RNC ID for PS handover from GERAN Iu mode or for inter-RAT handover from UTRAN. In this diff --git a/epan/dissectors/packet-hip.c b/epan/dissectors/packet-hip.c index 35b26ab8d8..a450bb9bf9 100644 --- a/epan/dissectors/packet-hip.c +++ b/epan/dissectors/packet-hip.c @@ -1041,7 +1041,7 @@ dissect_hip_tlv(tvbuff_t *tvb, int offset, proto_item *ti, int type, int tlv_len } else if (type == PARAM_REG_FAILED) { /* Failure Type */ proto_tree_add_item(t, hf_hip_tlv_reg_failtype, tvb, newoffset, 1, ENC_BIG_ENDIAN); - newoffset++;; + newoffset++; tlv_len--; } else { /* Lifetime */ diff --git a/epan/dissectors/packet-icq.c b/epan/dissectors/packet-icq.c index 2df6a5f34f..e1c6653f34 100644 --- a/epan/dissectors/packet-icq.c +++ b/epan/dissectors/packet-icq.c @@ -1249,7 +1249,7 @@ icqv5_srv_meta_user(proto_tree* tree, /* Tree to put the data in */ auth = tvb_get_guint8(tvb, offset); proto_tree_add_text(sstree, tvb, offset, 1, "authorization: %s", (auth==0x01)?"Necessary":"Who needs it"); - offset++;; + offset++; /* Get x2 */ proto_tree_add_text(sstree, tvb, offset, sizeof(guint16), "x2: 0x%04x", tvb_get_letohs(tvb, offset)); diff --git a/epan/dissectors/packet-ieee17221.c b/epan/dissectors/packet-ieee17221.c index 3b774c42ed..961daa92b0 100644 --- a/epan/dissectors/packet-ieee17221.c +++ b/epan/dissectors/packet-ieee17221.c @@ -2534,7 +2534,7 @@ dissect_17221_aem(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree) mr_item = proto_tree_add_item(aem_tree, hf_aem_sample_rates, tvb, 0, 0, ENC_NA); mr_counter = tvb_get_ntohs(tvb, AUDIO_UNIT_OFFSET_SAMPLE_RATES_COUNT); - mr_subtree = proto_item_add_subtree(mr_item, ett_aem_sample_rates);; + mr_subtree = proto_item_add_subtree(mr_item, ett_aem_sample_rates); mr_offset = AUDIO_UNIT_OFFSET_SAMPLE_RATES; proto_item_set_len(mr_item, 4 * mr_counter); /* loop to get the array values */ diff --git a/epan/dissectors/packet-igmp.c b/epan/dissectors/packet-igmp.c index 4442ed5c0b..54cb80a665 100644 --- a/epan/dissectors/packet-igmp.c +++ b/epan/dissectors/packet-igmp.c @@ -517,7 +517,7 @@ dissect_v3_group_record(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tr col_append_fstr(pinfo->cinfo, COL_INFO, " / Group %s, unknown record type (?)", ip_to_str((guint8*)&maddr)); - break;; + break; } } else { switch(record_type) { diff --git a/epan/dissectors/packet-itdm.c b/epan/dissectors/packet-itdm.c index fd2f9c0bcd..5b755fabad 100644 --- a/epan/dissectors/packet-itdm.c +++ b/epan/dissectors/packet-itdm.c @@ -476,7 +476,7 @@ proto_reg_handoff_itdm(void) static guint ItdmMPLSLabel; if (!Initialized) { - itdm_handle = find_dissector("itdm");; + itdm_handle = find_dissector("itdm"); data_handle = find_dissector("data"); Initialized=TRUE; } else { diff --git a/epan/dissectors/packet-nfs.c b/epan/dissectors/packet-nfs.c index 240ed1d717..3c7dc64394 100644 --- a/epan/dissectors/packet-nfs.c +++ b/epan/dissectors/packet-nfs.c @@ -2306,7 +2306,7 @@ dissect_fhandle_data_CELERRA(tvbuff_t* tvb, packet_info *pinfo _U_, proto_tree * proto_tree_add_uint(obj_tree, hf_nfs_fh_obj_gen, tvb, offset+36, 4, obj_gen); } } -}; +} static void dissect_fhandle_data_unknown(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree) diff --git a/epan/dissectors/packet-pptp.c b/epan/dissectors/packet-pptp.c index 49cd3f8fd7..98b398a852 100644 --- a/epan/dissectors/packet-pptp.c +++ b/epan/dissectors/packet-pptp.c @@ -294,7 +294,7 @@ dissect_stop_req(tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree_add_item(tree, hf_pptp_reserved, tvb, offset, 1, ENC_NA); offset += 1; - proto_tree_add_item(tree, hf_pptp_reserved, tvb, offset, 2, ENC_NA);; + proto_tree_add_item(tree, hf_pptp_reserved, tvb, offset, 2, ENC_NA); } static void @@ -308,7 +308,7 @@ dissect_stop_reply(tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree_add_item(tree, hf_pptp_error, tvb, offset, 1, ENC_BIG_ENDIAN); offset += 1; - proto_tree_add_item(tree, hf_pptp_reserved, tvb, offset, 2, ENC_NA);; + proto_tree_add_item(tree, hf_pptp_reserved, tvb, offset, 2, ENC_NA); } @@ -316,7 +316,7 @@ static void dissect_echo_req(tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree) { - proto_tree_add_item(tree, hf_pptp_identifier, tvb, offset, 4, ENC_BIG_ENDIAN);; + proto_tree_add_item(tree, hf_pptp_identifier, tvb, offset, 4, ENC_BIG_ENDIAN); } static void diff --git a/epan/dissectors/packet-radius.c b/epan/dissectors/packet-radius.c index a50c5982ea..3c496a0f10 100644 --- a/epan/dissectors/packet-radius.c +++ b/epan/dissectors/packet-radius.c @@ -1810,7 +1810,7 @@ extern void radius_register_avp_dissector(guint32 vendor_id, guint32 attribute_i } if (!dictionary_entry) { - dictionary_entry = g_malloc(sizeof(radius_attr_info_t));; + dictionary_entry = g_malloc(sizeof(radius_attr_info_t)); dictionary_entry->name = g_strdup_printf("Unknown-Attribute-%u",attribute_id); dictionary_entry->code = attribute_id; diff --git a/epan/dissectors/packet-rlm.c b/epan/dissectors/packet-rlm.c index d1d7f17a8a..dd3f2b82bd 100644 --- a/epan/dissectors/packet-rlm.c +++ b/epan/dissectors/packet-rlm.c @@ -140,23 +140,23 @@ dissect_rlm(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) switch (rlm_type) { case RLM_START_REQUEST: type_str = "Start request"; - break;; + break; case RLM_START_ACK: type_str = "Start acknowledgement"; - break;; + break; case RLM_ECHO_REQUEST: type_str = "Echo request"; - break;; + break; case RLM_ECHO_REPLY: type_str = "Echo reply"; - break;; + break; default: type_str = "Unknown type"; - break;; + break; } col_set_str(pinfo->cinfo, COL_INFO, type_str); diff --git a/epan/dissectors/packet-rtp-midi.c b/epan/dissectors/packet-rtp-midi.c index 8594620e16..104a5b8849 100644 --- a/epan/dissectors/packet-rtp-midi.c +++ b/epan/dissectors/packet-rtp-midi.c @@ -6120,7 +6120,7 @@ decode_cj_chapter_n( tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, un for ( i = 0; i < log_count; i++ ) { note = tvb_get_guint8( tvb, offset ) & 0x7f; - velocity = tvb_get_guint8( tvb, offset + 1 ) & 0x7f;; + velocity = tvb_get_guint8( tvb, offset + 1 ) & 0x7f; note_str = val_to_str( note, rtp_midi_note_values, rtp_midi_unknown_value_dec ); diff --git a/epan/dissectors/packet-spice.c b/epan/dissectors/packet-spice.c index 70b036de30..7df4795213 100644 --- a/epan/dissectors/packet-spice.c +++ b/epan/dissectors/packet-spice.c @@ -1468,7 +1468,7 @@ static guint32 dissect_Image(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint32 offset) { guint32 ImageSize = 0; - const guint8 type = dissect_ImageDescriptor(tvb, tree, offset);; + const guint8 type = dissect_ImageDescriptor(tvb, tree, offset); offset += sizeof_ImageDescriptor; diff --git a/epan/dissectors/packet-ssl-utils.c b/epan/dissectors/packet-ssl-utils.c index 0d5084ca63..dc16ef711f 100644 --- a/epan/dissectors/packet-ssl-utils.c +++ b/epan/dissectors/packet-ssl-utils.c @@ -2337,7 +2337,7 @@ tls_check_mac(SslDecoder*decoder, gint ct, gint ver, guint8* data, digests[decoder->cipher_suite->dig-0x40], md); if (ssl_hmac_init(&hm,decoder->mac_key.data,decoder->mac_key.data_len,md) != 0) - return -1;; + return -1; /* hash sequence number */ fmt_seq(decoder->seq,buf); diff --git a/epan/dissectors/packet-umts_fp.c b/epan/dissectors/packet-umts_fp.c index 230ed444e0..446a6f103f 100644 --- a/epan/dissectors/packet-umts_fp.c +++ b/epan/dissectors/packet-umts_fp.c @@ -2846,7 +2846,7 @@ static void dissect_e_dch_t2_or_common_channel_info(tvbuff_t *tvb, packet_info * /* Add data summary to info column */ col_append_fstr(pinfo->cinfo, COL_INFO, " (%u bytes in %u SDUs in %u MAC-is PDUs in %u subframes)", - total_bytes, macis_sdus_found, macis_pdus, number_of_subframes);; + total_bytes, macis_sdus_found, macis_pdus, number_of_subframes); /* Spare extension and payload CRC (optional) */ dissect_spare_extension_and_crc(tvb, pinfo, tree, diff --git a/epan/dissectors/packet-wlccp.c b/epan/dissectors/packet-wlccp.c index 2022878abb..85a1ebd7e5 100644 --- a/epan/dissectors/packet-wlccp.c +++ b/epan/dissectors/packet-wlccp.c @@ -2615,7 +2615,7 @@ static guint dissect_wlccp_rrm_tlv(proto_tree *_tree, tvbuff_t *_tvb, guint _off proto_tree_add_item(_80211_capabilities_tree, hf_80211_cap_ibss, _tvb, _offset, 2, ENC_BIG_ENDIAN); proto_tree_add_item(_80211_capabilities_tree, hf_80211_cap_ess, - _tvb, _offset, 2, ENC_BIG_ENDIAN);; + _tvb, _offset, 2, ENC_BIG_ENDIAN); /* proto_tree_add_item(_tree, hf_wlccp_capabilities, _tvb, _offset, 2, ENC_BIG_ENDIAN); */ _offset += 2; |