commit c3a040a2db7964be918a34acc35db912431757b1
parent ba614e8d68f1c26d9c6bcd9ad0f67523359379ea
Author: sin <sin@2f30.org>
Date: Mon, 13 May 2019 23:32:16 +0100
chunker: Fixup return types
Diffstat:
2 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/chunker.c b/chunker.c
@@ -154,7 +154,6 @@ cclose(struct chunker *c)
{
free(c->buf);
free(c);
- return 0;
}
ssize_t
@@ -186,7 +185,7 @@ cget(struct chunker *c, size_t *csize)
return bp;
}
-void
+size_t
cdrain(struct chunker *c)
{
unsigned char *src, *dst;
diff --git a/chunker.h b/chunker.h
@@ -4,4 +4,4 @@ extern struct chunker *copen(int, size_t, size_t, size_t, size_t);
extern void cclose(struct chunker *);
extern ssize_t cfill(struct chunker *);
extern void *cget(struct chunker *, size_t *);
-extern void cdrain(struct chunker *);
+extern size_t cdrain(struct chunker *);