Use a switch instead of successive if (strcmp()) statments.
[oweals/busybox.git] / archival / gunzip.c
index b6f3e08ea578da89e568ac2b00e5a982a5c12bd4..e9963a8d23fa40592efd32c8c846497874d2151a 100644 (file)
@@ -143,7 +143,7 @@ extern int gunzip_main(int argc, char **argv)
                        new_path = xstrdup(old_path);
 
                        extension = strrchr(new_path, '.');
-#ifdef CONFIG_FEATURE_UNCOMPRESS
+#ifdef CONFIG_FEATURE_GUNZIP_UNCOMPRESS
                        if (extension && (strcmp(extension, ".Z") == 0)) {
                                *extension = '\0';
                        } else
@@ -172,7 +172,7 @@ extern int gunzip_main(int argc, char **argv)
                        unsigned char magic2;
                        
                        magic2 = xread_char(src_fd);
-#ifdef CONFIG_FEATURE_UNCOMPRESS
+#ifdef CONFIG_FEATURE_GUNZIP_UNCOMPRESS
                        if (magic2 == 0x9d) {
                                status = uncompress(src_fd, dst_fd);
                        } else