aboutsummaryrefslogtreecommitdiffstats
path: root/epan/emem.h
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2011-11-20 12:43:04 +0000
committerAnders Broman <anders.broman@ericsson.com>2011-11-20 12:43:04 +0000
commit62866c78a006cb680358cda2d40d2140cfb0b97d (patch)
treee35b0a570aceccc6f2c60e9ab90574475e6eedee /epan/emem.h
parent8fdb6af097162f3fdb41a1db045c40dc1fb61f03 (diff)
Get rid of Warnings.
svn path=/trunk/; revision=39957
Diffstat (limited to 'epan/emem.h')
-rw-r--r--epan/emem.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/epan/emem.h b/epan/emem.h
index 8989abbf4e..ffa9704df5 100644
--- a/epan/emem.h
+++ b/epan/emem.h
@@ -135,9 +135,11 @@ void* ep_stack_pop(ep_stack_t stack);
/** Allocate memory with a capture lifetime scope */
void *se_alloc(size_t size) G_GNUC_MALLOC;
+#define se_new(type) ((type*)se_alloc(sizeof(type)))
/** Allocate memory with a capture lifetime scope and fill it with zeros*/
void* se_alloc0(size_t size) G_GNUC_MALLOC;
+#define se_new0(type) ((type*)se_alloc0(sizeof(type)))
/** Duplicate a string with a capture lifetime scope */
gchar* se_strdup(const gchar* src) G_GNUC_MALLOC;