From b11efd3e505c281bbf5b80aa5d0018134c99eb2d Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Fri, 17 Jun 2005 06:13:47 +0000 Subject: r7674: Fix the printf() attribute suggestion by correctly prototyping, then declaring the static function. The attribute only works on the prototype, not the function. Andrew Bartlett (This used to be commit 4c254754d25e5aa8b203d2d67a39895ffef3f393) --- source4/utils/getntacl.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source4/utils') diff --git a/source4/utils/getntacl.c b/source4/utils/getntacl.c index fe1d6adea0..c3b704d85e 100644 --- a/source4/utils/getntacl.c +++ b/source4/utils/getntacl.c @@ -27,7 +27,9 @@ #if HAVE_XATTR_SUPPORT -static void ntacl_print_debug_helper(struct ndr_print *ndr, const char *format, ...) _PRINTF_ATTRIBUTE(2,3) +static void ntacl_print_debug_helper(struct ndr_print *ndr, const char *format, ...) PRINTF_ATTRIBUTE(2,3); + +static void ntacl_print_debug_helper(struct ndr_print *ndr, const char *format, ...) { va_list ap; char *s = NULL; -- cgit