From 832dfa7e1f7fff31193c08497cc1f7685e4bb699 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sun, 11 Apr 1999 03:42:21 +0000 Subject: [PATCH] (xwrite): Use STDOUT_FILENO instead of literal `1'. --- src/tail.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tail.c b/src/tail.c index 93083090b4..0e0d0e8b57 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")); -- 2.47.3