gz_open and gz_close were left in, even when BB_FEATURE_TAR_GZIP was disabled.
authorEric Andersen <andersen@codepoet.org>
Thu, 29 Mar 2001 14:22:45 +0000 (14:22 -0000)
committerEric Andersen <andersen@codepoet.org>
Thu, 29 Mar 2001 14:22:45 +0000 (14:22 -0000)
Fix that.

archival/gunzip.c
gunzip.c

index 1107bc75cbf92e4279f215b61966d1bb06454039..51541f15553ed8b66029b660d7786800c3782009 100644 (file)
@@ -1017,6 +1017,7 @@ extern int unzip(FILE *l_in_file, FILE *l_out_file)
        return 0;
 }
 
+#ifdef BB_FEATURE_TAR_GZIP
 extern int gz_open(FILE *compressed_file, int *pid)
 {
        int unzip_pipe[2];
@@ -1056,6 +1057,7 @@ extern void gz_close(int gunzip_pid)
        free(window);
        free(crc_table);
 }
+#endif 
 
 extern int gunzip_main(int argc, char **argv)
 {
index 1107bc75cbf92e4279f215b61966d1bb06454039..51541f15553ed8b66029b660d7786800c3782009 100644 (file)
--- a/gunzip.c
+++ b/gunzip.c
@@ -1017,6 +1017,7 @@ extern int unzip(FILE *l_in_file, FILE *l_out_file)
        return 0;
 }
 
+#ifdef BB_FEATURE_TAR_GZIP
 extern int gz_open(FILE *compressed_file, int *pid)
 {
        int unzip_pipe[2];
@@ -1056,6 +1057,7 @@ extern void gz_close(int gunzip_pid)
        free(window);
        free(crc_table);
 }
+#endif 
 
 extern int gunzip_main(int argc, char **argv)
 {