diff options
author | Eric Andersen | 2004-03-27 10:02:48 +0000 |
---|---|---|
committer | Eric Andersen | 2004-03-27 10:02:48 +0000 |
commit | 70060d25d23278f6b636a535edca4a0c4006decd (patch) | |
tree | 372a280d63bab86ec9ffddc76ec28b27a7a1b3ee /archival/uncompress.c | |
parent | edd580a088fe67f33036d3732f66f917b1c0a80b (diff) | |
download | busybox-70060d25d23278f6b636a535edca4a0c4006decd.zip busybox-70060d25d23278f6b636a535edca4a0c4006decd.tar.gz |
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 2de37d2..48b4e2c 100644 --- a/archival/uncompress.c +++ b/archival/uncompress.c @@ -46,7 +46,7 @@ extern int uncompress_main(int argc, char **argv) int dst_fd; if (strcmp(compressed_file, "-") == 0) { - src_fd = fileno(stdin); + src_fd = STDIN_FILENO; flags |= GUNZIP_TO_STDOUT; } else { src_fd = bb_xopen(compressed_file, O_RDONLY); @@ -60,7 +60,7 @@ extern int uncompress_main(int argc, char **argv) /* Set output filename and number */ if (flags & GUNZIP_TO_STDOUT) { - dst_fd = fileno(stdout); + dst_fd = STDOUT_FILENO; } else { struct stat stat_buf; char *extension; @@ -96,10 +96,10 @@ extern int uncompress_main(int argc, char **argv) delete_path = uncompressed_file; } - if (dst_fd != fileno(stdout)) { + if (dst_fd != STDOUT_FILENO) { close(dst_fd); } - if (src_fd != fileno(stdin)) { + if (src_fd != STDIN_FILENO) { close(src_fd); } |