summaryrefslogtreecommitdiff
path: root/epan
diff options
context:
space:
mode:
authorAlexis La Goutte <alexis.lagoutte@gmail.com>2014-10-27 23:59:37 +0100
committerEvan Huus <eapache@gmail.com>2014-10-28 01:26:36 +0000
commit7ff086087f98936da15f6c8aaa2a379180f068d7 (patch)
treee64e81d630721324e823cefd6dc432aeca3f74b0 /epan
parentf62d60b082ccade46eb508e1406bdb5aaa1c4905 (diff)
downloadwireshark-7ff086087f98936da15f6c8aaa2a379180f068d7.tar.gz
Knxnetip: fix warning: ISO C does not allow extra ';' outside of a function
Change-Id: I43da305fcf7b8a18699ab1c14ba2b7868aa8897b Reviewed-on: https://code.wireshark.org/review/4958 Reviewed-by: Evan Huus <eapache@gmail.com>
Diffstat (limited to 'epan')
-rw-r--r--epan/dissectors/packet-knxnetip.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/epan/dissectors/packet-knxnetip.c b/epan/dissectors/packet-knxnetip.c
index 028d0a6f02..8dc8e990f1 100644
--- a/epan/dissectors/packet-knxnetip.c
+++ b/epan/dissectors/packet-knxnetip.c
@@ -683,7 +683,7 @@ static void dissect_hpai(tvbuff_t *tvb, guint32 *offset, proto_tree *insert_tree
proto_tree_add_item(hpai_tree, hf_knxnetip_hpai_port, tvb, *offset, 2, ENC_BIG_ENDIAN);
*offset+=2;
-};
+}
static gboolean dissect_dib(tvbuff_t *tvb, guint32 *offset, proto_tree *insert_tree) {
@@ -811,7 +811,7 @@ static gboolean dissect_dib(tvbuff_t *tvb, guint32 *offset, proto_tree *insert_t
}
return FALSE;
-};
+}
static guint dissect_cri(tvbuff_t *tvb, guint32 offset, proto_tree *insert_tree) {
@@ -841,7 +841,7 @@ static guint dissect_cri(tvbuff_t *tvb, guint32 offset, proto_tree *insert_tree)
offset+=(length-2);
}
return offset;
-};
+}
static void dissect_crd(tvbuff_t *tvb, guint32 *offset, proto_tree *insert_tree) {
@@ -870,7 +870,7 @@ static void dissect_crd(tvbuff_t *tvb, guint32 *offset, proto_tree *insert_tree)
proto_tree_add_item(crd_tree, hf_knxnetip_crd_protocol_data, tvb, *offset, (length-2), ENC_NA);
*offset+=(length-2);
}
-};
+}
static guint dissect_connection_header(tvbuff_t *tvb, guint32 offset, proto_tree *insert_tree, gboolean have_status) {
@@ -889,7 +889,7 @@ static guint dissect_connection_header(tvbuff_t *tvb, guint32 offset, proto_tree
}
return offset;
-};
+}
static guint dissect_selector(tvbuff_t *tvb, guint32 offset, proto_tree *insert_tree){
@@ -905,7 +905,7 @@ static guint dissect_selector(tvbuff_t *tvb, guint32 offset, proto_tree *insert_
offset+=6;
}
return offset;
-};
+}
static void dissect_apci(tvbuff_t *tvb, guint32 *offset, proto_tree *insert_tree, gboolean tpdu){
@@ -953,7 +953,7 @@ static void dissect_apci(tvbuff_t *tvb, guint32 *offset, proto_tree *insert_tree
*offset+=1;
}
-};
+}
static gboolean dissect_cemi(tvbuff_t *tvb, guint32 *offset, proto_tree *insert_tree, packet_info *pinfo){
@@ -1253,7 +1253,7 @@ static gboolean dissect_cemi(tvbuff_t *tvb, guint32 *offset, proto_tree *insert_
proto_tree_add_item(cemi_tree, hf_knxnetip_data, tvb, *offset, -1, ENC_NA);
}
return FALSE;
-};
+}
@@ -1444,7 +1444,7 @@ static void dissect_knxnetip (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tre
default:
proto_tree_add_item(body_tree, hf_knxnetip_unknown, tvb, offset, -1, ENC_NA);
}
-};
+}
static gboolean dissect_knxnetip_heur(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_) {
@@ -1467,7 +1467,7 @@ static gboolean dissect_knxnetip_heur(tvbuff_t *tvb, packet_info *pinfo, proto_t
dissect_knxnetip(tvb, pinfo, tree);
return (TRUE);
-};
+}
void proto_register_knxnetip (void) {
expert_module_t* expert_knxnetip;
@@ -1768,21 +1768,21 @@ void proto_register_knxnetip (void) {
static ei_register_info ei[] = {
{ &ei_knxnetip_length, { "knxnetip.invalid.length", PI_PROTOCOL, PI_ERROR, "invalid length", EXPFILL }},
- };
+ };
proto_knxnetip = proto_register_protocol("KNXnet/IP", "knxnetip", "knx");
proto_register_field_array(proto_knxnetip, hf, array_length(hf));
proto_register_subtree_array(ett, array_length(ett));
expert_knxnetip = expert_register_protocol(proto_knxnetip);
expert_register_field_array(expert_knxnetip, ei, array_length(ei));
-};
+}
void proto_reg_handoff_knxnetip(void) {
/* register as heuristic dissector for both TCP and UDP */
heur_dissector_add("tcp", dissect_knxnetip_heur, proto_knxnetip);
heur_dissector_add("udp", dissect_knxnetip_heur, proto_knxnetip);
-};
+}
/*
* Editor modelines - http://www.wireshark.org/tools/modelines.html