summaryrefslogtreecommitdiff
path: root/src/cat.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1996-05-28 01:42:07 +0000
committerJim Meyering <jim@meyering.net>1996-05-28 01:42:07 +0000
commit9da759a317b5db3e1b243e45e1a1802c1fd06126 (patch)
tree43ab02788d83c76227ce79a85bcb9f4c78dd6680 /src/cat.c
parentd2d2d043ff4ccc2de07ac09353369c854e418d31 (diff)
downloadcoreutils-9da759a317b5db3e1b243e45e1a1802c1fd06126.tar.xz
(main): Use STDIN_FILENO and STDOUT_FILENO instead of less portable fileno(*).
Diffstat (limited to 'src/cat.c')
-rw-r--r--src/cat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cat.c b/src/cat.c
index 4270889df..bafd8513f 100644
--- a/src/cat.c
+++ b/src/cat.c
@@ -657,7 +657,7 @@ main (int argc, char **argv)
if (check_redirection
&& stat_buf.st_dev == out_dev && stat_buf.st_ino == out_ino
- && (input_desc != fileno (stdin) || output_desc != fileno (stdout)))
+ && (input_desc != STDIN_FILENO || output_desc != STDOUT_FILENO))
{
error (0, 0, _("%s: input file is output file"), infile);
exit_status = 1;