diff options
author | Bill Meier <wmeier@newsguy.com> | 2013-03-20 01:18:10 +0000 |
---|---|---|
committer | Bill Meier <wmeier@newsguy.com> | 2013-03-20 01:18:10 +0000 |
commit | 0df5a9390d41149dfc87440d72e7669ba96748ec (patch) | |
tree | 8accf4dfc301adfc679ed7f21b7123cb4b2c55f9 /epan/next_tvb.c | |
parent | a43e5a7eb9fe1ad5a89e7cfd556a791a50fefee7 (diff) | |
download | wireshark-0df5a9390d41149dfc87440d72e7669ba96748ec.tar.gz |
From beroset:
remove C++ incompatibilities
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8416 attachment #10397
svn path=/trunk/; revision=48438
Diffstat (limited to 'epan/next_tvb.c')
-rw-r--r-- | epan/next_tvb.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/next_tvb.c b/epan/next_tvb.c index cbdd91554c..9297e53b60 100644 --- a/epan/next_tvb.c +++ b/epan/next_tvb.c @@ -40,7 +40,7 @@ void next_tvb_init(next_tvb_list_t *list) { void next_tvb_add_handle(next_tvb_list_t *list, tvbuff_t *tvb, proto_tree *tree, dissector_handle_t handle) { next_tvb_item_t *item; - item = ep_alloc(sizeof(next_tvb_item_t)); + item = ep_new(next_tvb_item_t); item->type = NTVB_HANDLE; item->handle = handle; @@ -61,7 +61,7 @@ void next_tvb_add_handle(next_tvb_list_t *list, tvbuff_t *tvb, proto_tree *tree, void next_tvb_add_uint(next_tvb_list_t *list, tvbuff_t *tvb, proto_tree *tree, dissector_table_t table, guint32 uint_val) { next_tvb_item_t *item; - item = ep_alloc(sizeof(next_tvb_item_t)); + item = ep_new(next_tvb_item_t); item->type = NTVB_UINT; item->table = table; @@ -83,7 +83,7 @@ void next_tvb_add_uint(next_tvb_list_t *list, tvbuff_t *tvb, proto_tree *tree, d void next_tvb_add_string(next_tvb_list_t *list, tvbuff_t *tvb, proto_tree *tree, dissector_table_t table, const gchar *string) { next_tvb_item_t *item; - item = ep_alloc(sizeof(next_tvb_item_t)); + item = ep_new(next_tvb_item_t); item->type = NTVB_STRING; item->table = table; |