diff options
author | Igor Sysoev <igor@sysoev.ru> | 2003-10-22 16:38:26 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2003-10-22 16:38:26 +0000 |
commit | dc9dd434aa1cfd24a98265742ff0ed4aeefc1f05 (patch) | |
tree | ceedf7b247bf2d5291da9c0cc2243fd3c3e505a9 /src/http/ngx_http_special_response.c | |
parent | 5bf3d25d69ecdbccaa98beeb089a7a6850529b89 (diff) | |
download | nginx-dc9dd434aa1cfd24a98265742ff0ed4aeefc1f05.tar.gz nginx-dc9dd434aa1cfd24a98265742ff0ed4aeefc1f05.zip |
nginx-0.0.1-2003-10-22-20:38:26 import
Diffstat (limited to 'src/http/ngx_http_special_response.c')
-rw-r--r-- | src/http/ngx_http_special_response.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/http/ngx_http_special_response.c b/src/http/ngx_http_special_response.c index a45d36125..2b274d5a0 100644 --- a/src/http/ngx_http_special_response.c +++ b/src/http/ngx_http_special_response.c @@ -154,7 +154,7 @@ int ngx_http_special_response_handler(ngx_http_request_t *r, int error) { int err, rc; ngx_hunk_t *h; - ngx_chain_t *out, **le, *ce; + ngx_chain_t *out, **ll, *cl; r->headers_out.status = error; @@ -219,15 +219,15 @@ int ngx_http_special_response_handler(ngx_http_request_t *r, int error) } out = NULL; - le = NULL; + ll = NULL; ngx_test_null(h, ngx_calloc_hunk(r->pool), NGX_ERROR); h->type = NGX_HUNK_MEMORY|NGX_HUNK_IN_MEMORY; h->pos = error_pages[err].data; h->last = error_pages[err].data + error_pages[err].len; - ngx_alloc_ce_and_set_hunk(ce, h, r->pool, NGX_ERROR); - ngx_chain_add_ce(out, le, ce); + ngx_alloc_link_and_set_hunk(cl, h, r->pool, NGX_ERROR); + ngx_chain_add_link(out, ll, cl); ngx_test_null(h, ngx_calloc_hunk(r->pool), NGX_ERROR); @@ -235,8 +235,8 @@ int ngx_http_special_response_handler(ngx_http_request_t *r, int error) h->pos = error_tail; h->last = error_tail + sizeof(error_tail) - 1; - ngx_alloc_ce_and_set_hunk(ce, h, r->pool, NGX_ERROR); - ngx_chain_add_ce(out, le, ce); + ngx_alloc_link_and_set_hunk(cl, h, r->pool, NGX_ERROR); + ngx_chain_add_link(out, ll, cl); if (/* STUB: "msie_padding on/off" */ 1 && r->http_version >= NGX_HTTP_VERSION_10 @@ -249,8 +249,8 @@ int ngx_http_special_response_handler(ngx_http_request_t *r, int error) h->pos = msie_stub; h->last = msie_stub + sizeof(msie_stub) - 1; - ngx_alloc_ce_and_set_hunk(ce, h, r->pool, NGX_ERROR); - ngx_chain_add_ce(out, le, ce); + ngx_alloc_link_and_set_hunk(cl, h, r->pool, NGX_ERROR); + ngx_chain_add_link(out, ll, cl); } h->type |= NGX_HUNK_LAST; |