diff options
author | Jim Meyering <jim@meyering.net> | 2002-08-25 14:32:02 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2002-08-25 14:32:02 +0000 |
commit | 3124a4e39341371d69097cf276fc00bd65a0e5f1 (patch) | |
tree | 9d09a01198e030ddf72ba599dea3fa7c2631b3a9 /src/tac.c | |
parent | f7f7207a69ad5e5b1a5a617f6a76986f54888960 (diff) | |
download | coreutils-3124a4e39341371d69097cf276fc00bd65a0e5f1.tar.xz |
(main): Close STDIN_FILENO rather than a literal `0'.
Diffstat (limited to 'src/tac.c')
-rw-r--r-- | src/tac.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); } |