Mercurial > hg > nginx
comparison src/core/ngx_output_chain.c @ 166:389d7ee9fa60
nginx-0.0.1-2003-10-30-11:51:06 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Thu, 30 Oct 2003 08:51:06 +0000 |
parents | 84036764e215 |
children | 8aef3c72e5da |
comparison
equal
deleted
inserted
replaced
165:894a01c6aea3 | 166:389d7ee9fa60 |
---|---|
106 size = hsize; | 106 size = hsize; |
107 } | 107 } |
108 } | 108 } |
109 | 109 |
110 ngx_test_null(ctx->hunk, | 110 ngx_test_null(ctx->hunk, |
111 ngx_create_temp_hunk(ctx->pool, size, 0, 0), | 111 ngx_create_temp_hunk(ctx->pool, size), |
112 NGX_ERROR); | 112 NGX_ERROR); |
113 ctx->hunk->tag = ctx->tag; | 113 ctx->hunk->tag = ctx->tag; |
114 ctx->hunk->type |= NGX_HUNK_RECYCLED; | 114 ctx->hunk->type |= NGX_HUNK_RECYCLED; |
115 ctx->hunks++; | 115 ctx->hunks++; |
116 | 116 |
251 | 251 |
252 return NGX_OK; | 252 return NGX_OK; |
253 } | 253 } |
254 | 254 |
255 | 255 |
256 int ngx_chain_write(void *data, ngx_chain_t *in) | 256 int ngx_chain_writer(void *data, ngx_chain_t *in) |
257 { | 257 { |
258 ngx_chain_write_ctx_t *ctx = data; | 258 ngx_chain_writer_ctx_t *ctx = data; |
259 | 259 |
260 ngx_chain_t *cl; | 260 ngx_chain_t *cl; |
261 | 261 |
262 | 262 |
263 for (/* void */; in; in = in->next) { | 263 for (/* void */; in; in = in->next) { |