diff options
-rw-r--r-- | source4/cluster/ctdb/common/ctdb_call.c | 3 | ||||
-rw-r--r-- | source4/cluster/ctdb/include/ctdb_private.h | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/source4/cluster/ctdb/common/ctdb_call.c b/source4/cluster/ctdb/common/ctdb_call.c index 5c0a00c6e9..2c11354ed5 100644 --- a/source4/cluster/ctdb/common/ctdb_call.c +++ b/source4/cluster/ctdb/common/ctdb_call.c @@ -117,6 +117,9 @@ static int ctdb_call_local(struct ctdb_context *ctdb, TDB_DATA key, */ static void ctdb_send_error(struct ctdb_context *ctdb, struct ctdb_req_header *hdr, uint32_t status, + const char *fmt, ...) PRINTF_ATTRIBUTE(4,5); +static void ctdb_send_error(struct ctdb_context *ctdb, + struct ctdb_req_header *hdr, uint32_t status, const char *fmt, ...) { va_list ap; diff --git a/source4/cluster/ctdb/include/ctdb_private.h b/source4/cluster/ctdb/include/ctdb_private.h index 89643eff0f..68e82fd605 100644 --- a/source4/cluster/ctdb/include/ctdb_private.h +++ b/source4/cluster/ctdb/include/ctdb_private.h @@ -193,7 +193,7 @@ struct ctdb_reply_dmaster { }; /* internal prototypes */ -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); bool ctdb_same_address(struct ctdb_address *a1, struct ctdb_address *a2); int ctdb_parse_address(struct ctdb_context *ctdb, |