diff options
author | Lennart Poettering <lennart@poettering.net> | 2005-08-15 02:42:59 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2005-08-15 02:42:59 +0000 |
commit | deb6bcac8d1e1ecec4aafaee2d27dbe467e4f461 (patch) | |
tree | 4c09185727a6b81fba305ade5e22b84cc7142976 /avahi-common/malloc.h | |
parent | e240bf98f07316031f632330d89400aa0dea2fbf (diff) |
* implement ini file parser
* strip glib usage from avahi-daemon
* make dbus-watch-glue a static library so that both avahi-client and avahi-daemon can make use of it
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@327 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
Diffstat (limited to 'avahi-common/malloc.h')
-rw-r--r-- | avahi-common/malloc.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/avahi-common/malloc.h b/avahi-common/malloc.h index 6d10226..d0e620a 100644 --- a/avahi-common/malloc.h +++ b/avahi-common/malloc.h @@ -45,10 +45,10 @@ void avahi_free(void *p); void *avahi_realloc(void *p, size_t size); /** Allocate n new structures of the specified type. */ -#define avahi_new(type, n) (type*) avahi_malloc(n*sizeof(type)) +#define avahi_new(type, n) ((type*) avahi_malloc((n)*sizeof(type))) /** Same as avahi_new() but set the memory to zero */ -#define avahi_new0(type, n) (type*) avahi_malloc0(n*sizeof(type)) +#define avahi_new0(type, n) ((type*) avahi_malloc0((n)*sizeof(type))) /** Just like libc's strdup() */ char *avahi_strdup(const char *s); |