diff options
author | Eric Andersen <andersen@codepoet.org> | 2004-03-27 10:02:48 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2004-03-27 10:02:48 +0000 |
commit | 70060d25d23278f6b636a535edca4a0c4006decd (patch) | |
tree | 372a280d63bab86ec9ffddc76ec28b27a7a1b3ee /archival/uncompress.c | |
parent | edd580a088fe67f33036d3732f66f917b1c0a80b (diff) | |
download | busybox-w32-70060d25d23278f6b636a535edca4a0c4006decd.tar.gz busybox-w32-70060d25d23278f6b636a535edca4a0c4006decd.tar.bz2 busybox-w32-70060d25d23278f6b636a535edca4a0c4006decd.zip |
s/fileno\(stdin\)/STDIN_FILENO/g
s/fileno\(stdout\)/STDOUT_FILENO/g
Diffstat (limited to 'archival/uncompress.c')
-rw-r--r-- | archival/uncompress.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/archival/uncompress.c b/archival/uncompress.c index 2de37d273..48b4e2cad 100644 --- a/archival/uncompress.c +++ b/archival/uncompress.c | |||
@@ -46,7 +46,7 @@ extern int uncompress_main(int argc, char **argv) | |||
46 | int dst_fd; | 46 | int dst_fd; |
47 | 47 | ||
48 | if (strcmp(compressed_file, "-") == 0) { | 48 | if (strcmp(compressed_file, "-") == 0) { |
49 | src_fd = fileno(stdin); | 49 | src_fd = STDIN_FILENO; |
50 | flags |= GUNZIP_TO_STDOUT; | 50 | flags |= GUNZIP_TO_STDOUT; |
51 | } else { | 51 | } else { |
52 | src_fd = bb_xopen(compressed_file, O_RDONLY); | 52 | src_fd = bb_xopen(compressed_file, O_RDONLY); |
@@ -60,7 +60,7 @@ extern int uncompress_main(int argc, char **argv) | |||
60 | 60 | ||
61 | /* Set output filename and number */ | 61 | /* Set output filename and number */ |
62 | if (flags & GUNZIP_TO_STDOUT) { | 62 | if (flags & GUNZIP_TO_STDOUT) { |
63 | dst_fd = fileno(stdout); | 63 | dst_fd = STDOUT_FILENO; |
64 | } else { | 64 | } else { |
65 | struct stat stat_buf; | 65 | struct stat stat_buf; |
66 | char *extension; | 66 | char *extension; |
@@ -96,10 +96,10 @@ extern int uncompress_main(int argc, char **argv) | |||
96 | delete_path = uncompressed_file; | 96 | delete_path = uncompressed_file; |
97 | } | 97 | } |
98 | 98 | ||
99 | if (dst_fd != fileno(stdout)) { | 99 | if (dst_fd != STDOUT_FILENO) { |
100 | close(dst_fd); | 100 | close(dst_fd); |
101 | } | 101 | } |
102 | if (src_fd != fileno(stdin)) { | 102 | if (src_fd != STDIN_FILENO) { |
103 | close(src_fd); | 103 | close(src_fd); |
104 | } | 104 | } |
105 | 105 | ||