Mercurial > hg > nginx
comparison src/os/unix/ngx_files.c @ 194:2357fa41738a
nginx-0.0.1-2003-11-21-09:30:49 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Fri, 21 Nov 2003 06:30:49 +0000 |
parents | 71ce40b3c37b |
children | 11fbd0fc041d |
comparison
equal
deleted
inserted
replaced
193:dd66383796a5 | 194:2357fa41738a |
---|---|
116 | 116 |
117 /* use pwrite() if there's the only hunk in a chain */ | 117 /* use pwrite() if there's the only hunk in a chain */ |
118 | 118 |
119 if (cl->next == NULL) { | 119 if (cl->next == NULL) { |
120 return ngx_write_file(file, cl->hunk->pos, | 120 return ngx_write_file(file, cl->hunk->pos, |
121 cl->hunk->last - cl->hunk->pos, offset); | 121 (size_t) (cl->hunk->last - cl->hunk->pos), |
122 offset); | |
122 } | 123 } |
123 | 124 |
124 prev = NULL; | 125 prev = NULL; |
125 iov = NULL; | 126 iov = NULL; |
126 size = 0; | 127 size = 0; |