aboutsummaryrefslogtreecommitdiff
path: root/archival/bunzip2.c
diff options
context:
space:
mode:
Diffstat (limited to 'archival/bunzip2.c')
-rw-r--r--archival/bunzip2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/archival/bunzip2.c b/archival/bunzip2.c
index e2c3ca91d..ba422723c 100644
--- a/archival/bunzip2.c
+++ b/archival/bunzip2.c
@@ -52,7 +52,7 @@ int bunzip2_main(int argc, char **argv)
52 /* Open input file */ 52 /* Open input file */
53 src_fd = bb_xopen(compressed_name, O_RDONLY); 53 src_fd = bb_xopen(compressed_name, O_RDONLY);
54 } else { 54 } else {
55 src_fd = fileno(stdin); 55 src_fd = STDIN_FILENO;
56 opt |= BUNZIP2_OPT_STDOUT; 56 opt |= BUNZIP2_OPT_STDOUT;
57 } 57 }
58 58
@@ -62,7 +62,7 @@ int bunzip2_main(int argc, char **argv)
62 } 62 }
63 63
64 if (opt & BUNZIP2_OPT_STDOUT) { 64 if (opt & BUNZIP2_OPT_STDOUT) {
65 dst_fd = fileno(stdout); 65 dst_fd = STDOUT_FILENO;
66 } else { 66 } else {
67 int len = strlen(compressed_name) - 4; 67 int len = strlen(compressed_name) - 4;
68 if (strcmp(compressed_name + len, ".bz2") != 0) { 68 if (strcmp(compressed_name + len, ".bz2") != 0) {