summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2007-01-19 12:16:39 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:43:49 -0500
commit4c719f82c2fe69710cf30b3c71d3281ca1d79a62 (patch)
treed031f3aba39fff86aafd287119f10dccc644a645 /source4
parentc30b82c3ea088c2b76709e9413e3479c1e458314 (diff)
downloadsamba-4c719f82c2fe69710cf30b3c71d3281ca1d79a62.tar.gz
samba-4c719f82c2fe69710cf30b3c71d3281ca1d79a62.tar.bz2
samba-4c719f82c2fe69710cf30b3c71d3281ca1d79a62.zip
r20900: fix compiler warnings
metze (This used to be commit cb59eae91966e3e493c3c992d2b96965d17dac17)
Diffstat (limited to 'source4')
-rw-r--r--source4/cluster/ctdb/common/ctdb_call.c3
-rw-r--r--source4/cluster/ctdb/include/ctdb_private.h2
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,