diff options
author | Eric Andersen <andersen@codepoet.org> | 2001-03-29 14:22:45 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2001-03-29 14:22:45 +0000 |
commit | 3a6da8c183142a2681a2382b63e970f457cf807b (patch) | |
tree | bd8b97a2ec797c1523c3444dcb7a83a2b24cf716 | |
parent | 5f2ef46d6dd0cc8f564b11da70ac8c34968302d1 (diff) | |
download | busybox-w32-3a6da8c183142a2681a2382b63e970f457cf807b.tar.gz busybox-w32-3a6da8c183142a2681a2382b63e970f457cf807b.tar.bz2 busybox-w32-3a6da8c183142a2681a2382b63e970f457cf807b.zip |
gz_open and gz_close were left in, even when BB_FEATURE_TAR_GZIP was disabled.
Fix that.
-rw-r--r-- | archival/gunzip.c | 2 | ||||
-rw-r--r-- | gunzip.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/archival/gunzip.c b/archival/gunzip.c index 1107bc75c..51541f155 100644 --- a/archival/gunzip.c +++ b/archival/gunzip.c | |||
@@ -1017,6 +1017,7 @@ extern int unzip(FILE *l_in_file, FILE *l_out_file) | |||
1017 | return 0; | 1017 | return 0; |
1018 | } | 1018 | } |
1019 | 1019 | ||
1020 | #ifdef BB_FEATURE_TAR_GZIP | ||
1020 | extern int gz_open(FILE *compressed_file, int *pid) | 1021 | extern int gz_open(FILE *compressed_file, int *pid) |
1021 | { | 1022 | { |
1022 | int unzip_pipe[2]; | 1023 | int unzip_pipe[2]; |
@@ -1056,6 +1057,7 @@ extern void gz_close(int gunzip_pid) | |||
1056 | free(window); | 1057 | free(window); |
1057 | free(crc_table); | 1058 | free(crc_table); |
1058 | } | 1059 | } |
1060 | #endif | ||
1059 | 1061 | ||
1060 | extern int gunzip_main(int argc, char **argv) | 1062 | extern int gunzip_main(int argc, char **argv) |
1061 | { | 1063 | { |
@@ -1017,6 +1017,7 @@ extern int unzip(FILE *l_in_file, FILE *l_out_file) | |||
1017 | return 0; | 1017 | return 0; |
1018 | } | 1018 | } |
1019 | 1019 | ||
1020 | #ifdef BB_FEATURE_TAR_GZIP | ||
1020 | extern int gz_open(FILE *compressed_file, int *pid) | 1021 | extern int gz_open(FILE *compressed_file, int *pid) |
1021 | { | 1022 | { |
1022 | int unzip_pipe[2]; | 1023 | int unzip_pipe[2]; |
@@ -1056,6 +1057,7 @@ extern void gz_close(int gunzip_pid) | |||
1056 | free(window); | 1057 | free(window); |
1057 | free(crc_table); | 1058 | free(crc_table); |
1058 | } | 1059 | } |
1060 | #endif | ||
1059 | 1061 | ||
1060 | extern int gunzip_main(int argc, char **argv) | 1062 | extern int gunzip_main(int argc, char **argv) |
1061 | { | 1063 | { |