summaryrefslogtreecommitdiffstats
path: root/ctdb/tcp
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2007-04-28 11:35:49 +0200
committerAndrew Tridgell <tridge@samba.org>2007-04-28 11:35:49 +0200
commitee228e870dbcc31fa1db848836467216339dea51 (patch)
tree62a549833fad4bcb53f98d22633f87ecdb001257 /ctdb/tcp
parent76381c4493b6273fa1aa3ea6f5277f7471d42d7e (diff)
downloadsamba-ee228e870dbcc31fa1db848836467216339dea51.tar.gz
samba-ee228e870dbcc31fa1db848836467216339dea51.tar.xz
samba-ee228e870dbcc31fa1db848836467216339dea51.zip
fixed some warnings
(This used to be ctdb commit b5434a40cf2db008eb1e681fcd2ceeff331324fa)
Diffstat (limited to 'ctdb/tcp')
-rw-r--r--ctdb/tcp/tcp_io.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ctdb/tcp/tcp_io.c b/ctdb/tcp/tcp_io.c
index 150d726afb..3e267e504c 100644
--- a/ctdb/tcp/tcp_io.c
+++ b/ctdb/tcp/tcp_io.c
@@ -43,13 +43,13 @@ void ctdb_tcp_read_cb(uint8_t *data, size_t cnt, void *args)
}
if (cnt < sizeof(*hdr)) {
- ctdb_set_error(in->ctdb, "Bad packet length %d\n", cnt);
+ ctdb_set_error(in->ctdb, "Bad packet length %u\n", (unsigned)cnt);
return;
}
hdr = (struct ctdb_req_header *)data;
if (cnt != hdr->length) {
- ctdb_set_error(in->ctdb, "Bad header length %d expected %d\n",
- hdr->length, cnt);
+ ctdb_set_error(in->ctdb, "Bad header length %u expected %u\n",
+ (unsigned)hdr->length, (unsigned)cnt);
return;
}