diff options
author | Igor Sysoev <igor@sysoev.ru> | 2004-01-26 08:52:49 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2004-01-26 08:52:49 +0000 |
commit | e04084c1b295f5a704c2962f82becb5f278d60e3 (patch) | |
tree | f5d6aef36c9c1650e7cdf27dea5b70b73c3f7f68 /src/core/ngx_hunk.c | |
parent | 5c8c52f858c0112e9200ed1c4798a89e6c366bf2 (diff) | |
download | nginx-e04084c1b295f5a704c2962f82becb5f278d60e3.tar.gz nginx-e04084c1b295f5a704c2962f82becb5f278d60e3.zip |
nginx-0.0.1-2004-01-26-11:52:49 import
Diffstat (limited to 'src/core/ngx_hunk.c')
-rw-r--r-- | src/core/ngx_hunk.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/core/ngx_hunk.c b/src/core/ngx_hunk.c index d6aa0a40e..07c388499 100644 --- a/src/core/ngx_hunk.c +++ b/src/core/ngx_hunk.c @@ -98,15 +98,15 @@ int ngx_chain_add_copy(ngx_pool_t *pool, ngx_chain_t **chain, ngx_chain_t *in) void ngx_chain_update_chains(ngx_chain_t **free, ngx_chain_t **busy, ngx_chain_t **out, ngx_hunk_tag_t tag) { - ngx_chain_t *te; + ngx_chain_t *tl; if (*busy == NULL) { *busy = *out; } else { - for (te = *busy; /* void */ ; te = te->next) { - if (te->next == NULL) { - te->next = *out; + for (tl = *busy; /* void */ ; tl = tl->next) { + if (tl->next == NULL) { + tl->next = *out; break; } } @@ -132,9 +132,9 @@ void ngx_chain_update_chains(ngx_chain_t **free, ngx_chain_t **busy, (*busy)->hunk->pos = (*busy)->hunk->last = (*busy)->hunk->start; - te = *busy; + tl = *busy; *busy = (*busy)->next; - te->next = *free; - *free = te; + tl->next = *free; + *free = tl; } } |