- mark function static
- add missing return statement
- avoid uninitialized use of "len"
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
-void *gzip_thread(void *ptr)
+static void *gzip_thread(void *ptr)
{
struct gzip_handle *zh = ptr;
char buf[4096];
{
struct gzip_handle *zh = ptr;
char buf[4096];
while (1) {
if (zh->file)
while (1) {
if (zh->file)
close(zh->wfd);
zh->wfd = -1;
close(zh->wfd);
zh->wfd = -1;
}
int gzip_exec(struct gzip_handle *zh, const char *filename)
}
int gzip_exec(struct gzip_handle *zh, const char *filename)