diff options
author | Jim Meyering <jim@meyering.net> | 1996-05-28 01:42:07 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1996-05-28 01:42:07 +0000 |
commit | 9da759a317b5db3e1b243e45e1a1802c1fd06126 (patch) | |
tree | 43ab02788d83c76227ce79a85bcb9f4c78dd6680 | |
parent | d2d2d043ff4ccc2de07ac09353369c854e418d31 (diff) | |
download | coreutils-9da759a317b5db3e1b243e45e1a1802c1fd06126.tar.xz |
(main): Use STDIN_FILENO and STDOUT_FILENO instead of less portable fileno(*).
-rw-r--r-- | src/cat.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |