Fix log format warning

The expression port + 1 is promoted to int, but printed as uint16_t.
This commit is contained in:
Romain Vimont 2020-04-13 16:22:43 +02:00
parent 927d655ff6
commit 7eb16ce364

View file

@ -172,7 +172,7 @@ enable_tunnel_reverse_any_port(struct server *server,
// check before incrementing to avoid overflow on port 65535
if (port < port_range.last) {
LOGW("Could not listen on port %" PRIu16", retrying on %" PRIu16,
port, port + 1);
port, (uint16_t) (port + 1));
port++;
continue;
}