Skip to content

Commit fba4bc3

Browse files
committed
Use correct function signature
At some point, libcurl moved to having a proper size_t return value for this callback function. Start using that and prevent a compiler warning.
1 parent 5ae3d8c commit fba4bc3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

regress/test-nogzip.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ struct buf {
3232
size_t sz;
3333
};
3434

35-
static int
35+
static size_t
3636
parentwrite(void *ptr, size_t sz, size_t nm, void *dat)
3737
{
3838
struct buf *buf = dat;
@@ -42,7 +42,7 @@ parentwrite(void *ptr, size_t sz, size_t nm, void *dat)
4242
memcpy(buf->buf + buf->sz, ptr, sz * nm);
4343
buf->sz += sz * nm;
4444
buf->buf[buf->sz] = '\0';
45-
return(sz * nm);
45+
return sz * nm;
4646
}
4747

4848
static int

0 commit comments

Comments
 (0)