aboutsummaryrefslogtreecommitdiff
path: root/archival/gunzip.c
diff options
context:
space:
mode:
authorGlenn L McGrath <bug1@ihug.co.nz>2002-11-01 23:38:54 +0000
committerGlenn L McGrath <bug1@ihug.co.nz>2002-11-01 23:38:54 +0000
commitbf1cc8b1b7a218a4c2f4bfb23ea44c74b65ebbf6 (patch)
tree4f0dbf581511eaaa3f0f86878f7e693a9faac6ce /archival/gunzip.c
parentd6aec8619d1713f90dba9999fa8dc52976aad1bd (diff)
downloadbusybox-w32-bf1cc8b1b7a218a4c2f4bfb23ea44c74b65ebbf6.tar.gz
busybox-w32-bf1cc8b1b7a218a4c2f4bfb23ea44c74b65ebbf6.tar.bz2
busybox-w32-bf1cc8b1b7a218a4c2f4bfb23ea44c74b65ebbf6.zip
Make uncompress a seperate applet so it doesnt pull in all the gunzip code
Diffstat (limited to 'archival/gunzip.c')
-rw-r--r--archival/gunzip.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/archival/gunzip.c b/archival/gunzip.c
index b6f3e08ea..e9963a8d2 100644
--- a/archival/gunzip.c
+++ b/archival/gunzip.c
@@ -143,7 +143,7 @@ extern int gunzip_main(int argc, char **argv)
143 new_path = xstrdup(old_path); 143 new_path = xstrdup(old_path);
144 144
145 extension = strrchr(new_path, '.'); 145 extension = strrchr(new_path, '.');
146#ifdef CONFIG_FEATURE_UNCOMPRESS 146#ifdef CONFIG_FEATURE_GUNZIP_UNCOMPRESS
147 if (extension && (strcmp(extension, ".Z") == 0)) { 147 if (extension && (strcmp(extension, ".Z") == 0)) {
148 *extension = '\0'; 148 *extension = '\0';
149 } else 149 } else
@@ -172,7 +172,7 @@ extern int gunzip_main(int argc, char **argv)
172 unsigned char magic2; 172 unsigned char magic2;
173 173
174 magic2 = xread_char(src_fd); 174 magic2 = xread_char(src_fd);
175#ifdef CONFIG_FEATURE_UNCOMPRESS 175#ifdef CONFIG_FEATURE_GUNZIP_UNCOMPRESS
176 if (magic2 == 0x9d) { 176 if (magic2 == 0x9d) {
177 status = uncompress(src_fd, dst_fd); 177 status = uncompress(src_fd, dst_fd);
178 } else 178 } else