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/rpm2cpio.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/rpm2cpio.c')
-rw-r--r-- | archival/rpm2cpio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/archival/rpm2cpio.c b/archival/rpm2cpio.c index 7b50595..5314e53 100644 --- a/archival/rpm2cpio.c +++ b/archival/rpm2cpio.c @@ -73,7 +73,7 @@ extern int rpm2cpio_main(int argc, char **argv) unsigned char magic[2]; if (argc == 1) { - rpm_fd = fileno(stdin); + rpm_fd = STDIN_FILENO; } else { rpm_fd = bb_xopen(argv[1], O_RDONLY); } @@ -96,7 +96,7 @@ extern int rpm2cpio_main(int argc, char **argv) } check_header_gzip(rpm_fd); - if (inflate_gunzip(rpm_fd, fileno(stdout)) != 0) { + if (inflate_gunzip(rpm_fd, STDOUT_FILENO) != 0) { bb_error_msg("Error inflating"); } |