diff options
author | Anders Broman <anders.broman@ericsson.com> | 2013-03-19 21:22:31 +0000 |
---|---|---|
committer | Anders Broman <anders.broman@ericsson.com> | 2013-03-19 21:22:31 +0000 |
commit | 7c56677cf9e703e6dde30529b24e27dd2a4960a9 (patch) | |
tree | 5d78d22112806bca22edbc8e069f77503269b381 /epan/dissectors/packet-h323.c | |
parent | b8481499646f07512ceddac567887072822dffdb (diff) |
From beroset:
remove C++ incompatibilities
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8416
svn path=/trunk/; revision=48429
Diffstat (limited to 'epan/dissectors/packet-h323.c')
-rw-r--r-- | epan/dissectors/packet-h323.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-h323.c b/epan/dissectors/packet-h323.c index 3f3b063bc7..92803f63d2 100644 --- a/epan/dissectors/packet-h323.c +++ b/epan/dissectors/packet-h323.c @@ -51,7 +51,7 @@ gef_ctx_t* gef_ctx_alloc(gef_ctx_t *parent, const gchar *type) { gef_ctx_t *gefx; - gefx = ep_alloc0(sizeof(gef_ctx_t)); + gefx = ep_new0(gef_ctx_t); gefx->signature = GEF_CTX_SIGNATURE; gefx->parent = parent; gefx->type = type; @@ -70,7 +70,7 @@ gef_ctx_t* gef_ctx_get(void *ptr) { actx = NULL; if (actx) - gefx = actx->private_data; + gefx = (gef_ctx_t *)actx->private_data; if (!gef_ctx_check_signature(gefx)) gefx = NULL; |