Mercurial > hg > nginx
diff src/http/modules/ngx_http_memcached_module.c @ 5801:ab48149b77a6
Style: use specified macro instead of magic-number.
author | Tatsuhiko Kubo <cubicdaiya@gmail.com> |
---|---|
date | Wed, 06 Aug 2014 23:58:44 +0900 |
parents | d80543940f9a |
children | d09b689911ac |
line wrap: on
line diff
--- a/src/http/modules/ngx_http_memcached_module.c +++ b/src/http/modules/ngx_http_memcached_module.c @@ -391,7 +391,7 @@ found: p = line.data + line.len; u->headers_in.content_length_n = ngx_atoof(start, p - start); - if (u->headers_in.content_length_n == -1) { + if (u->headers_in.content_length_n == NGX_ERROR) { ngx_log_error(NGX_LOG_ERR, r->connection->log, 0, "memcached sent invalid length in response \"%V\" " "for key \"%V\"",