diff options
| author | Diego Nehab <diego@tecgraf.puc-rio.br> | 2009-05-27 09:31:38 +0000 |
|---|---|---|
| committer | Diego Nehab <diego@tecgraf.puc-rio.br> | 2009-05-27 09:31:38 +0000 |
| commit | bce60be30fe8e9c1b0eb33128c23c93d7bca5303 (patch) | |
| tree | 3927343c777fcb7764a0f2f89754a0ceab141c21 /src/buffer.c | |
| parent | d1a72435d5bd3528f3c334cd4d1da16dcead47bf (diff) | |
| download | luasocket-bce60be30fe8e9c1b0eb33128c23c93d7bca5303.tar.gz luasocket-bce60be30fe8e9c1b0eb33128c23c93d7bca5303.tar.bz2 luasocket-bce60be30fe8e9c1b0eb33128c23c93d7bca5303.zip | |
Decent makefiles!
Diffstat (limited to 'src/buffer.c')
| -rw-r--r-- | src/buffer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buffer.c b/src/buffer.c index de817b2..363da3d 100644 --- a/src/buffer.c +++ b/src/buffer.c | |||
| @@ -166,7 +166,7 @@ static int sendraw(p_buffer buf, const char *data, size_t count, size_t *sent) { | |||
| 166 | size_t total = 0; | 166 | size_t total = 0; |
| 167 | int err = IO_DONE; | 167 | int err = IO_DONE; |
| 168 | while (total < count && err == IO_DONE) { | 168 | while (total < count && err == IO_DONE) { |
| 169 | size_t done; | 169 | size_t done = 0; |
| 170 | size_t step = (count-total <= STEPSIZE)? count-total: STEPSIZE; | 170 | size_t step = (count-total <= STEPSIZE)? count-total: STEPSIZE; |
| 171 | err = io->send(io->ctx, data+total, step, &done, tm); | 171 | err = io->send(io->ctx, data+total, step, &done, tm); |
| 172 | total += done; | 172 | total += done; |
