Mercurial > hg > nginx
diff src/http/ngx_http_special_response.c @ 155:46eb23d9471d
nginx-0.0.1-2003-10-22-20:38:26 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Wed, 22 Oct 2003 16:38:26 +0000 |
parents | c71aeb75c071 |
children | d377ee423603 |
line wrap: on
line diff
--- a/src/http/ngx_http_special_response.c Wed Oct 22 07:05:29 2003 +0000 +++ b/src/http/ngx_http_special_response.c Wed Oct 22 16:38:26 2003 +0000 @@ -154,7 +154,7 @@ { 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 @@ } 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 @@ 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 @@ 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;