summaryrefslogtreecommitdiffstats
path: root/avahi-common/malloc.h
diff options
context:
space:
mode:
Diffstat (limited to 'avahi-common/malloc.h')
-rw-r--r--avahi-common/malloc.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/avahi-common/malloc.h b/avahi-common/malloc.h
index d0e620a..d911a3a 100644
--- a/avahi-common/malloc.h
+++ b/avahi-common/malloc.h
@@ -60,15 +60,12 @@ char *avahi_strndup(const char *s, size_t l);
void *avahi_memdup(const void *s, size_t l);
/** Wraps allocator functions */
-typedef struct AvahiAllocator AvahiAllocator;
-
-/** Wraps allocator functions */
-struct AvahiAllocator {
+typedef struct AvahiAllocator {
void* (*malloc)(size_t size);
void (*free)(void *p);
void* (*realloc)(void *p, size_t size);
void* (*calloc)(size_t nmemb, size_t size); /**< May be NULL */
-};
+} AvahiAllocator;
/** Change the allocator. May be NULL to return to default (libc)
* allocators. The structure is not copied! */