summaryrefslogtreecommitdiff
path: root/source4/utils/getntacl.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2005-06-17 06:13:47 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:18:20 -0500
commitb11efd3e505c281bbf5b80aa5d0018134c99eb2d (patch)
tree5fdf3be7d366819daaf8cbccd5161c12b8cfdcb1 /source4/utils/getntacl.c
parent876ed022c2df56a699fdf83caf34a072b10e912d (diff)
downloadsamba-b11efd3e505c281bbf5b80aa5d0018134c99eb2d.tar.gz
samba-b11efd3e505c281bbf5b80aa5d0018134c99eb2d.tar.bz2
samba-b11efd3e505c281bbf5b80aa5d0018134c99eb2d.zip
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)
Diffstat (limited to 'source4/utils/getntacl.c')
-rw-r--r--source4/utils/getntacl.c4
1 files changed, 3 insertions, 1 deletions
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;