From 5e869b4eabaf428b36b5bc158ab4047d25e3eb5b Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Wed, 25 Aug 2004 07:15:21 +0000 Subject: r2055: Add PRINTF_ATTRIBUTE to many more parts of the code, and a new --enable-developer warning for when they are missing. Andrew Bartlett (This used to be commit 8115e44d47bcd65edba08d10117180ae508cdbc1) --- source4/rpc_server/samr/samdb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source4/rpc_server/samr') diff --git a/source4/rpc_server/samr/samdb.c b/source4/rpc_server/samr/samdb.c index 7be75258af..d23118f1f0 100644 --- a/source4/rpc_server/samr/samdb.c +++ b/source4/rpc_server/samr/samdb.c @@ -30,7 +30,7 @@ struct samdb_context { /* this is used to catch debug messages from ldb */ -void samdb_debug(void *context, enum ldb_debug_level level, const char *fmt, va_list ap) +void samdb_debug(void *context, enum ldb_debug_level level, const char *fmt, va_list ap) _PRINTF_ATTRIBUTE(3,0) { char *s = NULL; if (DEBUGLEVEL < 4 && level > LDB_DEBUG_WARNING) { @@ -128,7 +128,7 @@ const char *samdb_search_string_v(void *ctx, TALLOC_CTX *mem_ctx, const char *basedn, const char *attr_name, - const char *format, va_list ap) + const char *format, va_list ap) _PRINTF_ATTRIBUTE(5,0) { struct samdb_context *sam_ctx = ctx; int count; -- cgit