ctdb-common: Fix format-nonliteral warning
authorAmitay Isaacs <amitay@gmail.com>
Tue, 2 Aug 2016 08:31:14 +0000 (18:31 +1000)
committerUri Simchoni <uri@samba.org>
Wed, 10 Aug 2016 06:18:16 +0000 (08:18 +0200)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=12137

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Uri Simchoni <uri@samba.org>
ctdb/common/common.h

index b89a84cf4357d4a3de979dfdf7b681c6badd58c6..113816db9920ffd6a6cd935508508268baa512f5 100644 (file)
@@ -76,7 +76,8 @@ int ctdb_fetch_with_header_func(struct ctdb_call_info *call);
 
 const char *ctdb_errstr(struct ctdb_context *ctdb);
 
-void ctdb_set_error(struct ctdb_context *ctdb, const char *fmt, ...);
+void ctdb_set_error(struct ctdb_context *ctdb, const char *fmt, ...)
+                   PRINTF_ATTRIBUTE(2,3);
 
 void ctdb_fatal(struct ctdb_context *ctdb, const char *msg);