Using size_t for the field width type of the "%*s" specifier.

This commit is contained in:
Sergey Kandaurov
2018-01-24 15:16:32 +03:00
parent 477e8177b7
commit 67c64a99fb
13 changed files with 39 additions and 28 deletions

View File

@@ -65,7 +65,8 @@ nxt_stream_connection_peer(nxt_task_t *task, nxt_upstream_peer_t *up)
up->sockaddr->type = SOCK_STREAM;
nxt_log_debug(c->socket.log, "stream connection peer %*s",
up->sockaddr->length, nxt_sockaddr_start(up->sockaddr));
(size_t) up->sockaddr->length,
nxt_sockaddr_start(up->sockaddr));
p = nxt_conn_proxy_create(c);
if (nxt_slow_path(p == NULL)) {