summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1998-05-07 15:50:54 +0000
committerJim Meyering <jim@meyering.net>1998-05-07 15:50:54 +0000
commitcd7f8d6e9bde6709051c71d862cca5cdd0abc137 (patch)
treeeae15221203dda3950479b837cec7d64e8ee2424
parentbf598c02ba03e5f438c3cce321338694529126e5 (diff)
downloadcoreutils-cd7f8d6e9bde6709051c71d862cca5cdd0abc137.tar.xz
(tac_stdin): Use STDIN_FILENO rather than literal `0' in fstat call.
-rw-r--r--src/tac.c2
1 files changed, 1 insertions, 1 deletions
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;