From: Jim Meyering Date: Thu, 7 May 1998 15:50:54 +0000 (+0000) Subject: (tac_stdin): Use STDIN_FILENO rather than literal `0' in fstat call. X-Git-Tag: TEXTUTILS-1_22f~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cd7f8d6e9bde6709051c71d862cca5cdd0abc137;p=thirdparty%2Fcoreutils.git (tac_stdin): Use STDIN_FILENO rather than literal `0' in fstat call. --- diff --git a/src/tac.c b/src/tac.c index 416ab64aee..a4436c83d6 100644 --- a/src/tac.c +++ b/src/tac.c @@ -431,7 +431,7 @@ tac_stdin (void) Use fstat instead of checking for errno == ESPIPE because lseek doesn't work on some special files but doesn't return an error, either. */ - if (fstat (0, &stats)) + if (fstat (STDIN_FILENO, &stats)) { error (0, errno, _("standard input")); return 1;