From 7975c73967806d94cbf6d6d8fb91481286e34657 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Wed, 15 Mar 2017 00:50:46 +0100 Subject: [PATCH] libbb: change gzip_read() buffer argument to void * Make gzip_read() expect a void * buffer argument to avoid signed vs unsigned char mismatch warnings. Signed-off-by: Jo-Philipp Wich --- libbb/gzip.c | 2 +- libbb/gzip.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libbb/gzip.c b/libbb/gzip.c index dc3b283..622d617 100644 --- a/libbb/gzip.c +++ b/libbb/gzip.c @@ -130,7 +130,7 @@ int gzip_exec(struct gzip_handle *zh, const char *filename) return 0; } -ssize_t gzip_read(struct gzip_handle * zh, char *buf, ssize_t len) +ssize_t gzip_read(struct gzip_handle * zh, void *buf, ssize_t len) { ssize_t ret; diff --git a/libbb/gzip.h b/libbb/gzip.h index 13398d4..3a61a1d 100644 --- a/libbb/gzip.h +++ b/libbb/gzip.h @@ -33,7 +33,7 @@ struct gzip_handle { }; int gzip_exec(struct gzip_handle *zh, const char *filename); -ssize_t gzip_read(struct gzip_handle *zh, char *buf, ssize_t len); +ssize_t gzip_read(struct gzip_handle *zh, void *buf, ssize_t len); ssize_t gzip_copy(struct gzip_handle *zh, FILE * out, ssize_t len); int gzip_close(struct gzip_handle *zh); FILE *gzip_fdopen(struct gzip_handle *zh, const char *filename); -- 2.25.1