Browse Source

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);
         ^
pull/597/head
YumeMichi 9 years ago
committed by Max Lv
parent
commit
ebf24c1c01
1 changed files with 1 additions and 1 deletions
  1. 2
      src/redir.c

2
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;

Loading…
Cancel
Save