comparison src/os/win32/ngx_files.c @ 343:6bdf858bff8c

nginx-0.0.3-2004-05-28-19:49:23 import; rename ngx_hunk_t to ngx_buf_t
author Igor Sysoev <igor@sysoev.ru>
date Fri, 28 May 2004 15:49:23 +0000
parents a472bfb778b3
children e366ba5db8f8
comparison
equal deleted inserted replaced
342:0ee0642af5f1 343:6bdf858bff8c
137 ssize_t total, n; 137 ssize_t total, n;
138 138
139 total = 0; 139 total = 0;
140 140
141 while (cl) { 141 while (cl) {
142 buf = cl->hunk->pos; 142 buf = cl->buf->pos;
143 prev = buf; 143 prev = buf;
144 size = 0; 144 size = 0;
145 145
146 /* coalesce the neighbouring hunks */ 146 /* coalesce the neighbouring hunks */
147 147
148 while (cl && prev == cl->hunk->pos) { 148 while (cl && prev == cl->buf->pos) {
149 size += cl->hunk->last - cl->hunk->pos; 149 size += cl->buf->last - cl->buf->pos;
150 prev = cl->hunk->last; 150 prev = cl->buf->last;
151 cl = cl->next; 151 cl = cl->next;
152 } 152 }
153 153
154 n = ngx_write_file(file, buf, size, offset); 154 n = ngx_write_file(file, buf, size, offset);
155 155