From deb6bcac8d1e1ecec4aafaee2d27dbe467e4f461 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 15 Aug 2005 02:42:59 +0000 Subject: * 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 --- avahi-common/malloc.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'avahi-common/malloc.h') 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); -- cgit