From: Jim Meyering Date: Tue, 28 May 1996 01:42:07 +0000 (+0000) Subject: (main): Use STDIN_FILENO and STDOUT_FILENO instead of less portable fileno(*). X-Git-Tag: TEXTUTILS-1_15~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9da759a317b5db3e1b243e45e1a1802c1fd06126;p=thirdparty%2Fcoreutils.git (main): Use STDIN_FILENO and STDOUT_FILENO instead of less portable fileno(*). --- diff --git a/src/cat.c b/src/cat.c index 4270889df1..bafd8513fc 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;