summaryrefslogtreecommitdiff
path: root/lib/ldb
diff options
context:
space:
mode:
authorAmitay Isaacs <amitay@gmail.com>2016-08-03 00:44:24 +1000
committerStefan Metzmacher <metze@samba.org>2016-08-24 11:42:27 +0200
commit61423eb2b0ed2fb3f4012032c436d7fb3cfd8e13 (patch)
tree2640cbf8332ff0437c3b3c0a31ede175c95934a2 /lib/ldb
parentde35ebd24db3e3ea4825f33ad411234575074015 (diff)
downloadsamba-61423eb2b0ed2fb3f4012032c436d7fb3cfd8e13.tar.gz
ldb: Fix format-nonliteral warning
BUG: https://bugzilla.samba.org/show_bug.cgi?id=12168 Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> (cherry picked from commit a47e95337e96f3e62cde41680d94268f7ce58c6f)
Diffstat (limited to 'lib/ldb')
-rw-r--r--lib/ldb/tools/ldbdump.c3
-rw-r--r--lib/ldb/tools/ldbutil.h2
2 files changed, 4 insertions, 1 deletions
diff --git a/lib/ldb/tools/ldbdump.c b/lib/ldb/tools/ldbdump.c
index 3197d19266d..33f853df4a8 100644
--- a/lib/ldb/tools/ldbdump.c
+++ b/lib/ldb/tools/ldbdump.c
@@ -110,6 +110,9 @@ static int traverse_fn(TDB_CONTEXT *tdb, TDB_DATA key, TDB_DATA _dbuf, void *sta
}
static void log_stderr(struct tdb_context *tdb, enum tdb_debug_level level,
+ const char *fmt, ...) PRINTF_ATTRIBUTE(3,4);
+
+static void log_stderr(struct tdb_context *tdb, enum tdb_debug_level level,
const char *fmt, ...)
{
va_list ap;
diff --git a/lib/ldb/tools/ldbutil.h b/lib/ldb/tools/ldbutil.h
index f8d3f3a2106..672386346f0 100644
--- a/lib/ldb/tools/ldbutil.h
+++ b/lib/ldb/tools/ldbutil.h
@@ -43,4 +43,4 @@ int ldb_search_ctrl(struct ldb_context *ldb, TALLOC_CTX *mem_ctx,
struct ldb_result **result, struct ldb_dn *base,
enum ldb_scope scope, const char * const *attrs,
struct ldb_control **controls,
- const char *exp_fmt, ...);
+ const char *exp_fmt, ...) PRINTF_ATTRIBUTE(8,9);