mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-11-02 16:03:45 +00:00
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:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user