diff options
author | Anders Broman <anders.broman@ericsson.com> | 2011-11-20 12:43:04 +0000 |
---|---|---|
committer | Anders Broman <anders.broman@ericsson.com> | 2011-11-20 12:43:04 +0000 |
commit | 62866c78a006cb680358cda2d40d2140cfb0b97d (patch) | |
tree | e35b0a570aceccc6f2c60e9ab90574475e6eedee /epan/emem.h | |
parent | 8fdb6af097162f3fdb41a1db045c40dc1fb61f03 (diff) |
Get rid of Warnings.
svn path=/trunk/; revision=39957
Diffstat (limited to 'epan/emem.h')
-rw-r--r-- | epan/emem.h | 2 |
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; |