aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-gmr1_bcch.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-gmr1_bcch.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-gmr1_bcch.c')
-rw-r--r--epan/dissectors/packet-gmr1_bcch.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-gmr1_bcch.c b/epan/dissectors/packet-gmr1_bcch.c
index d95e592698..f522bd2cb3 100644
--- a/epan/dissectors/packet-gmr1_bcch.c
+++ b/epan/dissectors/packet-gmr1_bcch.c
@@ -1047,7 +1047,7 @@ dissect_gmr1_bcch(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
/* SI1 or SI2 */
if (is_si1) {
SystemInformation1_t *data;
- data = ep_alloc(sizeof(SystemInformation1_t));
+ data = ep_new(SystemInformation1_t);
csnStreamDissector(bcch_tree, &ar, CSNDESCR(SystemInformation1_t), tvb, data, ett_gmr1_bcch);
col_append_fstr(
pinfo->cinfo, COL_INFO,
@@ -1056,7 +1056,7 @@ dissect_gmr1_bcch(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
);
} else {
SystemInformation2_t *data;
- data = ep_alloc(sizeof(SystemInformation2_t));
+ data = ep_new(SystemInformation2_t);
csnStreamDissector(bcch_tree, &ar, CSNDESCR(SystemInformation2_t), tvb, data, ett_gmr1_bcch);
col_append_fstr(
pinfo->cinfo, COL_INFO,