From 606eda045bc3608977648fb1de61d8e328984d30 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Mon, 25 Jun 2018 16:56:45 +0300 Subject: Removed '\r' and '\n' artifact macros. --- src/nxt_http_chunk_parse.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/nxt_http_chunk_parse.c') diff --git a/src/nxt_http_chunk_parse.c b/src/nxt_http_chunk_parse.c index 83bb4965..644b9805 100644 --- a/src/nxt_http_chunk_parse.c +++ b/src/nxt_http_chunk_parse.c @@ -105,7 +105,7 @@ nxt_http_chunk_parse(nxt_task_t *task, nxt_http_chunk_parse_t *hcp, if (nxt_fast_path(c <= 5)) { c += 0x0A; - } else if (nxt_fast_path(ch == NXT_CR)) { + } else if (nxt_fast_path(ch == '\r')) { state = sw_chunk_size_linefeed; continue; @@ -122,7 +122,7 @@ nxt_http_chunk_parse(nxt_task_t *task, nxt_http_chunk_parse_t *hcp, goto chunk_error; case sw_chunk_size_linefeed: - if (nxt_fast_path(ch == NXT_LF)) { + if (nxt_fast_path(ch == '\n')) { if (hcp->chunk_size != 0) { state = sw_chunk; @@ -137,7 +137,7 @@ nxt_http_chunk_parse(nxt_task_t *task, nxt_http_chunk_parse_t *hcp, goto chunk_error; case sw_chunk_end_newline: - if (nxt_fast_path(ch == NXT_CR)) { + if (nxt_fast_path(ch == '\r')) { state = sw_chunk_end_linefeed; continue; } @@ -145,7 +145,7 @@ nxt_http_chunk_parse(nxt_task_t *task, nxt_http_chunk_parse_t *hcp, goto chunk_error; case sw_chunk_end_linefeed: - if (nxt_fast_path(ch == NXT_LF)) { + if (nxt_fast_path(ch == '\n')) { if (!hcp->last) { state = sw_start; -- cgit