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/core/ngx_hunk.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/core/ngx_hunk.c')
-rw-r--r-- | src/core/ngx_hunk.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/core/ngx_hunk.c b/src/core/ngx_hunk.c index cd218307d..100bc62af 100644 --- a/src/core/ngx_hunk.c +++ b/src/core/ngx_hunk.c @@ -99,26 +99,26 @@ ngx_hunk_t *ngx_create_hunk_after(ngx_pool_t *pool, ngx_hunk_t *hunk, int size) } -int ngx_chain_add_copy(ngx_pool_t *pool, ngx_chain_t **ch, ngx_chain_t *in) +int ngx_chain_add_copy(ngx_pool_t *pool, ngx_chain_t **chain, ngx_chain_t *in) { - ngx_chain_t *ce, **le; + ngx_chain_t *cl, **ll; - le = ch; + ll = chain; - for (ce = *ch; ce; ce = ce->next) { - le = &ce->next; + for (cl = *chain; cl; cl = cl->next) { + ll = &cl->next; } while (in) { - ngx_test_null(ce, ngx_alloc_chain_entry(pool), NGX_ERROR); + ngx_test_null(cl, ngx_alloc_chain_link(pool), NGX_ERROR); - ce->hunk = in->hunk; - *le = ce; - le = &ce->next; + cl->hunk = in->hunk; + *ll = cl; + ll = &cl->next; in = in->next; } - *le = NULL; + *ll = NULL; return NGX_OK; } |