summaryrefslogtreecommitdiff
path: root/src/tac.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2002-08-25 14:32:02 +0000
committerJim Meyering <jim@meyering.net>2002-08-25 14:32:02 +0000
commit3124a4e39341371d69097cf276fc00bd65a0e5f1 (patch)
tree9d09a01198e030ddf72ba599dea3fa7c2631b3a9 /src/tac.c
parentf7f7207a69ad5e5b1a5a617f6a76986f54888960 (diff)
downloadcoreutils-3124a4e39341371d69097cf276fc00bd65a0e5f1.tar.xz
(main): Close STDIN_FILENO rather than a literal `0'.
Diffstat (limited to 'src/tac.c')
-rw-r--r--src/tac.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tac.c b/src/tac.c
index b0da18ff4..69ec56f8b 100644
--- a/src/tac.c
+++ b/src/tac.c
@@ -710,7 +710,7 @@ main (int argc, char **argv)
/* Flush the output buffer. */
output ((char *) NULL, (char *) NULL);
- if (have_read_stdin && close (0) < 0)
+ if (have_read_stdin && close (STDIN_FILENO) < 0)
error (EXIT_FAILURE, errno, "-");
exit (errors == 0 ? EXIT_SUCCESS : EXIT_FAILURE);
}