From ee228e870dbcc31fa1db848836467216339dea51 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 28 Apr 2007 11:35:49 +0200 Subject: fixed some warnings (This used to be ctdb commit b5434a40cf2db008eb1e681fcd2ceeff331324fa) --- ctdb/tcp/tcp_io.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ctdb/tcp') 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; } -- cgit