summaryrefslogtreecommitdiffstats
path: root/ctdb/common/ctdb_daemon.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2007-05-29 13:58:41 +1000
committerAndrew Tridgell <tridge@samba.org>2007-05-29 13:58:41 +1000
commit1140d5a20a9a27d36631fd168d09a849b9a4983c (patch)
tree2f92ac5734270d713e21f79f269511eadc078169 /ctdb/common/ctdb_daemon.c
parentbc891232b600d2c03688003213f5cb0ac6977f8c (diff)
downloadsamba-1140d5a20a9a27d36631fd168d09a849b9a4983c.tar.gz
samba-1140d5a20a9a27d36631fd168d09a849b9a4983c.tar.xz
samba-1140d5a20a9a27d36631fd168d09a849b9a4983c.zip
fixed more warnings on 64 bit boxes
(This used to be ctdb commit 2f6eae476203f8a8b28e083553204c01f224c8a5)
Diffstat (limited to 'ctdb/common/ctdb_daemon.c')
-rw-r--r--ctdb/common/ctdb_daemon.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/ctdb/common/ctdb_daemon.c b/ctdb/common/ctdb_daemon.c
index 6b76c1824c..7e871a15cc 100644
--- a/ctdb/common/ctdb_daemon.c
+++ b/ctdb/common/ctdb_daemon.c
@@ -142,9 +142,11 @@ int daemon_register_message_handler(struct ctdb_context *ctdb, uint32_t client_i
}
res = ctdb_register_message_handler(ctdb, client, srvid, daemon_message_handler, client);
if (res != 0) {
- DEBUG(0,(__location__ " Failed to register handler %llu in daemon\n", srvid));
+ DEBUG(0,(__location__ " Failed to register handler %llu in daemon\n",
+ (unsigned long long)srvid));
} else {
- DEBUG(2,(__location__ " Registered message handler for srvid=%llu\n", srvid));
+ DEBUG(2,(__location__ " Registered message handler for srvid=%llu\n",
+ (unsigned long long)srvid));
}
return res;
}
@@ -789,7 +791,7 @@ struct ctdb_req_header *_ctdbd_allocate_pkt(struct ctdb_context *ctdb,
hdr = (struct ctdb_req_header *)talloc_size(mem_ctx, size);
if (hdr == NULL) {
DEBUG(0,("Unable to allocate packet for operation %u of length %u\n",
- operation, length));
+ operation, (unsigned)length));
return NULL;
}
talloc_set_name_const(hdr, type);
@@ -825,7 +827,7 @@ struct ctdb_req_header *_ctdb_transport_allocate(struct ctdb_context *ctdb,
hdr = (struct ctdb_req_header *)ctdb->methods->allocate_pkt(mem_ctx, size);
if (hdr == NULL) {
DEBUG(0,("Unable to allocate transport packet for operation %u of length %u\n",
- operation, length));
+ operation, (unsigned)length));
return NULL;
}
talloc_set_name_const(hdr, type);