]> git.ipfire.org Git - thirdparty/ldns.git/commitdiff
Accidently made the change in util.h before :(
authorWillem Toorop <willem@NLnetLabs.nl>
Thu, 12 May 2011 10:08:25 +0000 (10:08 +0000)
committerWillem Toorop <willem@NLnetLabs.nl>
Thu, 12 May 2011 10:08:25 +0000 (10:08 +0000)
ldns/util.h.in

index 7ddd4f4b887ed410c7614d134c6cdbb73a7800c5..d388586ee4fcf3fd6f417458fa68953f77afa86a 100644 (file)
@@ -50,6 +50,8 @@ extern "C" {
 
 #define LDNS_XMALLOC(type, count)      ((type *) malloc((count) * sizeof(type)))
 
+#define LDNS_CALLOC(type, count)       ((type *) calloc((count), sizeof(type)))
+
 #define LDNS_REALLOC(ptr, type)                LDNS_XREALLOC((ptr), type, 1)
 
 #define LDNS_XREALLOC(ptr, type, count)                                \