summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_http_request.c
diff options
context:
space:
mode:
authorSergey Kandaurov <pluknet@nginx.com>2018-01-24 15:16:32 +0300
committerSergey Kandaurov <pluknet@nginx.com>2018-01-24 15:16:32 +0300
commit67c64a99fb78f48c3deacc7d89e73de72522806b (patch)
tree384b433c94fc63e27d21d6b05153d162655e79bc /src/nxt_http_request.c
parent477e8177b70acb694759e62d830b8a311a736324 (diff)
downloadunit-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_http_request.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nxt_http_request.c b/src/nxt_http_request.c
index 270ebba7..9c7d4451 100644
--- a/src/nxt_http_request.c
+++ b/src/nxt_http_request.c
@@ -375,7 +375,8 @@ nxt_http_request_close_handler(nxt_task_t *task, void *obj, void *data)
r->logged = 1;
// STUB
nxt_debug(task, "http request log: \"%*s \"%V %V %V\" %d\"",
- r->remote->address_length, nxt_sockaddr_address(r->remote),
+ (size_t) r->remote->address_length,
+ nxt_sockaddr_address(r->remote),
r->method, &r->target, &r->version, r->status);
}