Fix compile on 32-bit machine (#593)

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);
         ^
This commit is contained in:
YumeMichi
2016-04-19 15:52:07 +08:00
committed by Max Lv
parent 3e0952de52
commit ebf24c1c01
+1 -1
View File
@@ -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;