diff options
author | Anders Broman <anders.broman@ericsson.com> | 2013-03-19 19:28:57 +0000 |
---|---|---|
committer | Anders Broman <anders.broman@ericsson.com> | 2013-03-19 19:28:57 +0000 |
commit | 3eb06be97d520daef0bad19bf9c261b01abdc66d (patch) | |
tree | 521ce26d4bc68c8e4158df7aa2af769ba60e93b9 /epan/dissectors/packet-openwire.c | |
parent | 089dfcd1085ac242322b8e90845ad9913ac7fcd3 (diff) |
From beroset:
remove C++ incompatibilities
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8416
svn path=/trunk/; revision=48425
Diffstat (limited to 'epan/dissectors/packet-openwire.c')
-rw-r--r-- | epan/dissectors/packet-openwire.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-openwire.c b/epan/dissectors/packet-openwire.c index 41cf0d295c..2df0040f58 100644 --- a/epan/dissectors/packet-openwire.c +++ b/epan/dissectors/packet-openwire.c @@ -600,7 +600,7 @@ detect_protocol_options(tvbuff_t *tvb, packet_info *pinfo, int offset, int iComm type = tvb_get_guint8(tvb, offset + 11); command_id = tvb_get_ntohl(tvb, offset + 5); - cd = se_alloc(sizeof(openwire_conv_data)); + cd = se_new(openwire_conv_data); cd->caching = FALSE; cd->tight = FALSE; if (command_id > (1 << 24)) @@ -636,7 +636,7 @@ detect_protocol_options(tvbuff_t *tvb, packet_info *pinfo, int offset, int iComm cd = (openwire_conv_data*)conversation_get_proto_data(conv, proto_openwire); if (!cd) { - cd = se_alloc(sizeof(openwire_conv_data)); + cd = se_new(openwire_conv_data); cd->tight = TRUE; cd->caching = FALSE; /* Dummy value */ conversation_add_proto_data(conv, proto_openwire, cd); |