From cd7f8d6e9bde6709051c71d862cca5cdd0abc137 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Thu, 7 May 1998 15:50:54 +0000 Subject: (tac_stdin): Use STDIN_FILENO rather than literal `0' in fstat call. --- src/tac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tac.c b/src/tac.c index 416ab64ae..a4436c83d 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; -- cgit v1.2.3-70-g09d2