summaryrefslogtreecommitdiffhomepage
path: root/src/test/nxt_http_parse_test.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/test/nxt_http_parse_test.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/test/nxt_http_parse_test.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/test/nxt_http_parse_test.c b/src/test/nxt_http_parse_test.c
index 3da10766..3b924614 100644
--- a/src/test/nxt_http_parse_test.c
+++ b/src/test/nxt_http_parse_test.c
@@ -712,8 +712,9 @@ nxt_http_parse_test_request_line(nxt_http_request_parse_t *rp,
if (nxt_memcmp(rp->version.str, test->version, 8) != 0) {
nxt_log_alert(log, "http parse test case failed:\n"
" - request:\n\"%V\"\n"
- " - version: \"%*s\" (expected: \"%*s\")",
- request, 8, rp->version.str, 8, test->version);
+ " - version: \"%*s\" (expected: \"%*s\")", request,
+ (size_t) 8, rp->version.str,
+ (size_t) 8, test->version);
return NXT_ERROR;
}