summaryrefslogtreecommitdiff
path: root/lib/tdr
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-10-02 01:25:13 +0200
committerGünther Deschner <gd@samba.org>2009-10-05 11:15:45 +0200
commitab8a16c77f8222115493bbc295318a7d9ceb6d38 (patch)
treea1c458b0ee397791b31b91ee1a1bcc94842e997e /lib/tdr
parent926457ec9565c980c14a658b34291e41317d404b (diff)
downloadsamba-ab8a16c77f8222115493bbc295318a7d9ceb6d38.tar.gz
samba-ab8a16c77f8222115493bbc295318a7d9ceb6d38.tar.bz2
samba-ab8a16c77f8222115493bbc295318a7d9ceb6d38.zip
lib/tdr: get rid of build warning when using TDR_ALLOC macro.
Guenther
Diffstat (limited to 'lib/tdr')
-rw-r--r--lib/tdr/tdr.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tdr/tdr.h b/lib/tdr/tdr.h
index 1eedc580d5..84f3e50c2b 100644
--- a/lib/tdr/tdr.h
+++ b/lib/tdr/tdr.h
@@ -55,7 +55,7 @@ struct tdr_print {
} while (0)
#define TDR_ALLOC(ctx, s, n) do { \
- (s) = talloc_array_size(ctx, sizeof(*(s)), n); \
+ (s) = talloc_array_ptrtype(ctx, (s), n); \
if ((n) && !(s)) return NT_STATUS_NO_MEMORY; \
} while (0)