From ab8a16c77f8222115493bbc295318a7d9ceb6d38 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Fri, 2 Oct 2009 01:25:13 +0200 Subject: lib/tdr: get rid of build warning when using TDR_ALLOC macro. Guenther --- lib/tdr/tdr.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/tdr/tdr.h b/lib/tdr/tdr.h index 1eedc580d54..84f3e50c2ba 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) -- cgit