summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1999-04-11 03:42:21 +0000
committerJim Meyering <jim@meyering.net>1999-04-11 03:42:21 +0000
commit832dfa7e1f7fff31193c08497cc1f7685e4bb699 (patch)
treeb4376bc6f51d7c5ab121aebbd7b74f897086cc81
parent35af2e86139176343255e9f50622fd0c7386b81d (diff)
downloadcoreutils-832dfa7e1f7fff31193c08497cc1f7685e4bb699.tar.xz
(xwrite): Use STDOUT_FILENO instead of literal `1'.
-rw-r--r--src/tail.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tail.c b/src/tail.c
index 93083090b..0e0d0e8b5 100644
--- a/src/tail.c
+++ b/src/tail.c
@@ -235,7 +235,7 @@ pretty_name (struct File_spec const *f)
static void
xwrite (int fd, char *const buffer, size_t n_bytes)
{
- assert (fd == 1);
+ assert (fd == STDOUT_FILENO);
assert (n_bytes >= 0);
if (n_bytes > 0 && fwrite (buffer, 1, n_bytes, stdout) == 0)
error (EXIT_FAILURE, errno, _("write error"));