aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-iec104.c
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2013-03-19 20:00:52 +0000
committerAnders Broman <anders.broman@ericsson.com>2013-03-19 20:00:52 +0000
commit6bde91807842874d396f80faf5653e5403c249dc (patch)
tree8dc51d6ec7d1ecb0e5d6f8bed87a43ba01fc10a7 /epan/dissectors/packet-iec104.c
parent3eb06be97d520daef0bad19bf9c261b01abdc66d (diff)
From beroset:
remove C++ incompatibilities https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8416 svn path=/trunk/; revision=48426
Diffstat (limited to 'epan/dissectors/packet-iec104.c')
-rw-r--r--epan/dissectors/packet-iec104.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-iec104.c b/epan/dissectors/packet-iec104.c
index ab04a742d2..bdd0e8dc1d 100644
--- a/epan/dissectors/packet-iec104.c
+++ b/epan/dissectors/packet-iec104.c
@@ -1067,7 +1067,7 @@ static void dissect_iec104asdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tr
col_set_str(pinfo->cinfo, COL_PROTOCOL, "104asdu");
col_clear(pinfo->cinfo, COL_INFO);
- asduh = ep_alloc(sizeof(struct asduheader));
+ asduh = ep_new(struct asduheader);
res = ep_strbuf_new_label(NULL);
/*** *** START: Common to 'Packet List' and 'Packet Details' *** ***/
@@ -1521,7 +1521,7 @@ static void dissect_iec104apci(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tr
col_set_str(pinfo->cinfo, COL_PROTOCOL, "104apci");
col_clear(pinfo->cinfo, COL_INFO);
- apcih = ep_alloc(sizeof(struct apciheader));
+ apcih = ep_new(struct apciheader);
/*** *** START: Common to 'Packet List' and 'Packet Details' *** ***/
Start = 0;