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 /asn1/h323/packet-h323-template.c | |
parent | b8481499646f07512ceddac567887072822dffdb (diff) | |
download | wireshark-7c56677cf9e703e6dde30529b24e27dd2a4960a9.tar.gz wireshark-7c56677cf9e703e6dde30529b24e27dd2a4960a9.tar.bz2 wireshark-7c56677cf9e703e6dde30529b24e27dd2a4960a9.zip |
From beroset:
remove C++ incompatibilities
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8416
svn path=/trunk/; revision=48429
Diffstat (limited to 'asn1/h323/packet-h323-template.c')
-rw-r--r-- | asn1/h323/packet-h323-template.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/asn1/h323/packet-h323-template.c b/asn1/h323/packet-h323-template.c index 0a243d7cd6..cece8c4901 100644 --- a/asn1/h323/packet-h323-template.c +++ b/asn1/h323/packet-h323-template.c @@ -43,7 +43,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; @@ -62,7 +62,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; |