mirror of
https://github.com/curl/curl.git
synced 2026-08-24 21:43:32 +03:00
Thomas J. Moore made it build with less warnings
This commit is contained in:
parent
ed4a16dbd1
commit
74ad8516d7
2 changed files with 10 additions and 25 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue