comparison src/core/ngx_hunk.c @ 239:574bea0142be

nginx-0.0.1-2004-01-26-11:52:49 import
author Igor Sysoev <igor@sysoev.ru>
date Mon, 26 Jan 2004 08:52:49 +0000
parents 0b67be7d4489
children 87e73f067470
comparison
equal deleted inserted replaced
238:674f85a4d00f 239:574bea0142be
96 96
97 97
98 void ngx_chain_update_chains(ngx_chain_t **free, ngx_chain_t **busy, 98 void ngx_chain_update_chains(ngx_chain_t **free, ngx_chain_t **busy,
99 ngx_chain_t **out, ngx_hunk_tag_t tag) 99 ngx_chain_t **out, ngx_hunk_tag_t tag)
100 { 100 {
101 ngx_chain_t *te; 101 ngx_chain_t *tl;
102 102
103 if (*busy == NULL) { 103 if (*busy == NULL) {
104 *busy = *out; 104 *busy = *out;
105 105
106 } else { 106 } else {
107 for (te = *busy; /* void */ ; te = te->next) { 107 for (tl = *busy; /* void */ ; tl = tl->next) {
108 if (te->next == NULL) { 108 if (tl->next == NULL) {
109 te->next = *out; 109 tl->next = *out;
110 break; 110 break;
111 } 111 }
112 } 112 }
113 } 113 }
114 114
130 continue; 130 continue;
131 } 131 }
132 132
133 (*busy)->hunk->pos = (*busy)->hunk->last = (*busy)->hunk->start; 133 (*busy)->hunk->pos = (*busy)->hunk->last = (*busy)->hunk->start;
134 134
135 te = *busy; 135 tl = *busy;
136 *busy = (*busy)->next; 136 *busy = (*busy)->next;
137 te->next = *free; 137 tl->next = *free;
138 *free = te; 138 *free = tl;
139 } 139 }
140 } 140 }