From ebf24c1c018b962e90249370685523971f477255 Mon Sep 17 00:00:00 2001 From: YumeMichi Date: Tue, 19 Apr 2016 15:52:07 +0800 Subject: [PATCH] Fix compile on 32-bit machine (#593) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit redir.c:212:9: error: format ‘%ld’ expects argument of type ‘long int’, but argument 5 has type ‘ssize_t’ [-Werror=format=] LOGI("redir to %s:%d, len=%ld", ipstr, port, r); ^ --- src/redir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/redir.c b/src/redir.c index c263f5d4..187e55a2 100644 --- a/src/redir.c +++ b/src/redir.c @@ -209,7 +209,7 @@ static void server_recv_cb(EV_P_ ev_io *w, int revents) port = ntohs(sa->sin6_port); } - LOGI("redir to %s:%d, len=%ld", ipstr, port, r); + LOGI("redir to %s:%d, len=%zd", ipstr, port, r); } remote->buf->len = r;