diff options
author | Sergey Kandaurov <pluknet@nginx.com> | 2018-01-24 15:16:32 +0300 |
---|---|---|
committer | Sergey Kandaurov <pluknet@nginx.com> | 2018-01-24 15:16:32 +0300 |
commit | 67c64a99fb78f48c3deacc7d89e73de72522806b (patch) | |
tree | 384b433c94fc63e27d21d6b05153d162655e79bc /src/nxt_stream_module.c | |
parent | 477e8177b70acb694759e62d830b8a311a736324 (diff) | |
download | unit-67c64a99fb78f48c3deacc7d89e73de72522806b.tar.gz unit-67c64a99fb78f48c3deacc7d89e73de72522806b.tar.bz2 |
Using size_t for the field width type of the "%*s" specifier.
Diffstat (limited to '')
-rw-r--r-- | src/nxt_stream_module.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nxt_stream_module.c b/src/nxt_stream_module.c index 461928c9..25aaec57 100644 --- a/src/nxt_stream_module.c +++ b/src/nxt_stream_module.c @@ -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)) { |