aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-sip.c
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2013-03-19 22:03:00 +0000
committerAnders Broman <anders.broman@ericsson.com>2013-03-19 22:03:00 +0000
commitae747e4c4b34c2d6889df335a439b9fba77538d0 (patch)
tree3586ed7bc3e608af6db8bf6eff87fb3990c45b35 /epan/dissectors/packet-sip.c
parent7c56677cf9e703e6dde30529b24e27dd2a4960a9 (diff)
From beroset:
remove C++ incompatibilities https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8416 svn path=/trunk/; revision=48430
Diffstat (limited to 'epan/dissectors/packet-sip.c')
-rw-r--r--epan/dissectors/packet-sip.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/epan/dissectors/packet-sip.c b/epan/dissectors/packet-sip.c
index f93c03ee27..93dfe17336 100644
--- a/epan/dissectors/packet-sip.c
+++ b/epan/dissectors/packet-sip.c
@@ -2171,7 +2171,7 @@ dissect_sip_common(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tr
}
/* Initialise stat info for passing to tap */
- stat_info = ep_alloc0(sizeof(sip_info_value_t));
+ stat_info = ep_new0(sip_info_value_t);
col_set_str(pinfo->cinfo, COL_PROTOCOL, "SIP");
@@ -3648,8 +3648,8 @@ guint sip_is_packet_resend(packet_info *pinfo,
/* Need to create a new table entry */
/* Allocate a new key and value */
- p_key = se_alloc(sizeof(sip_hash_key));
- p_val = se_alloc(sizeof(sip_hash_value));
+ p_key = se_new(sip_hash_key);
+ p_val = se_new(sip_hash_value);
/* Fill in key and value details */
g_snprintf(p_key->call_id, MAX_CALL_ID_SIZE, "%s", call_id);
@@ -3740,7 +3740,7 @@ guint sip_is_packet_resend(packet_info *pinfo,
sip_frame_result = (sip_frame_result_value *)p_get_proto_data(pinfo->fd, proto_sip);
if (sip_frame_result == NULL)
{
- sip_frame_result = se_alloc0(sizeof(sip_frame_result_value));
+ sip_frame_result = se_new0(sip_frame_result_value);
}
/* Store return value with this packet */
@@ -3844,7 +3844,7 @@ guint sip_find_request(packet_info *pinfo,
if (sip_frame_result == NULL)
{
/* Allocate and set all values to zero */
- sip_frame_result = se_alloc0(sizeof(sip_frame_result_value));
+ sip_frame_result = se_new0(sip_frame_result_value);
}
sip_frame_result->response_request_frame_num = result;
@@ -3964,7 +3964,7 @@ guint sip_find_invite(packet_info *pinfo,
if (sip_frame_result == NULL)
{
/* Allocate and set all values to zero */
- sip_frame_result = se_alloc0(sizeof(sip_frame_result_value));
+ sip_frame_result = se_new0(sip_frame_result_value);
}
sip_frame_result->response_request_frame_num = result;