diff options
author | Igor Sysoev <igor@sysoev.ru> | 2018-06-25 16:56:45 +0300 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2018-06-25 16:56:45 +0300 |
commit | 606eda045bc3608977648fb1de61d8e328984d30 (patch) | |
tree | cb24949d225133bd34f243e2445d7ba9cadfcbdf /src/nxt_http_chunk_parse.c | |
parent | 1a52d876f7e10d07f58deee6faeaf70a11a6110f (diff) | |
download | unit-606eda045bc3608977648fb1de61d8e328984d30.tar.gz unit-606eda045bc3608977648fb1de61d8e328984d30.tar.bz2 |
Removed '\r' and '\n' artifact macros.
Diffstat (limited to 'src/nxt_http_chunk_parse.c')
-rw-r--r-- | src/nxt_http_chunk_parse.c | 8 |
1 files changed, 4 insertions, 4 deletions
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; |