]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(main): Use STDIN_FILENO and STDOUT_FILENO instead of less portable fileno(*).
authorJim Meyering <jim@meyering.net>
Tue, 28 May 1996 01:42:07 +0000 (01:42 +0000)
committerJim Meyering <jim@meyering.net>
Tue, 28 May 1996 01:42:07 +0000 (01:42 +0000)
src/cat.c

index 4270889df15f44aa5dca132b5a7c6432d1b0d02d..bafd8513fc1caa40323450069d448aa1dd4140d3 100644 (file)
--- 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;