From e63e871d4055842b96782d3a682b6a64a240e31f Mon Sep 17 00:00:00 2001 From: "aiyion.prime" Date: Mon, 30 Jan 2017 19:21:20 +0100 Subject: [PATCH] zu is a size_t, so maybe a cast would calm the dumb compilers down --- src/protocol_misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/protocol_misc.c b/src/protocol_misc.c index 625c006f..4528f3fc 100644 --- a/src/protocol_misc.c +++ b/src/protocol_misc.c @@ -100,7 +100,7 @@ bool send_ping(connection_t *c) { c->status.pinged = true; c->last_ping_time = now; - return send_request(c, "%d %zu %ld", PING, c->last_ping_time.tv_sec, c->last_ping_time.tv_usec); + return send_request(c, "%d %zu %ld", PING, (size_t)c->last_ping_time.tv_sec, c->last_ping_time.tv_usec); } bool ping_h(connection_t *c, const char *request) {