r24764: Fix second TALLOC_SIZE definition. Still watching the
authorJeremy Allison <jra@samba.org>
Wed, 29 Aug 2007 04:06:09 +0000 (04:06 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:30:18 +0000 (12:30 -0500)
build farm to see I didn't stuff this up...
Jeremy.
(This used to be commit 4ca43172d9feae92060ddefb76a97622bca32d1b)

source3/libaddns/dns.h

index 21dc52ac77605b3d3369bd20b6eab3b38d14f918..8f2a0898532e922209d820f61dbf7f13d344daa1 100644 (file)
@@ -116,7 +116,7 @@ void *talloc_zeronull(const void *context, size_t size, const char *name);
 #define TALLOC_ZERO(ctx, size) _talloc_zero(ctx, size, __location__)
 #define TALLOC_ZERO_P(ctx, type) (type *)_talloc_zero(ctx, sizeof(type), #type)
 #define TALLOC_ZERO_ARRAY(ctx, type, count) (type *)_talloc_zero_array(ctx, sizeof(type), count, #type)
-#define TALLOC_SIZE(ctx, size) talloc(ctx, size, __location__)
+#define TALLOC_SIZE(ctx, size) talloc_named_const(ctx, size, __location__)
 #define TALLOC_ZERO_SIZE(ctx, size) _talloc_zero(ctx, size, __location__)
 
 #endif