libbb: remove unused variables
authorJo-Philipp Wich <jo@mein.io>
Tue, 14 Mar 2017 23:52:47 +0000 (00:52 +0100)
committerJo-Philipp Wich <jo@mein.io>
Wed, 15 Mar 2017 00:42:49 +0000 (01:42 +0100)
Remove unused variables from deb_extract() to avoid compiler warnings.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
libbb/unarchive.c

index 6edb5b6..31486e2 100644 (file)
@@ -523,15 +523,11 @@ char *deb_extract(const char *package_filename, FILE * out_stream,
                  const char *filename, int *err)
 {
        FILE *deb_stream = NULL;
-       file_header_t *ar_header = NULL;
        const char **file_list = NULL;
        char *output_buffer = NULL;
        char *ared_file = NULL;
-       char ar_magic[8];
-       int gz_err;
        struct gzip_handle tar_outer = { }, tar_inner = { };
        file_header_t *tar_header;
-       ssize_t len;
 
        *err = 0;