Thomas J. Moore made it build with less warnings

This commit is contained in:
Daniel Stenberg 2007-07-06 22:14:29 +00:00
parent ed4a16dbd1
commit 74ad8516d7
2 changed files with 10 additions and 25 deletions

View file

@ -129,9 +129,9 @@ block_read(int fd, void *buf, size_t len)
}
static int
block_write(int fd, void *buf, size_t len)
block_write(int fd, const void *buf, size_t len)
{
unsigned char *p = buf;
const unsigned char *p = buf;
int b;
while(len) {
b = write(fd, p, len);