From: Jim Meyering Date: Sun, 11 Apr 1999 03:42:21 +0000 (+0000) Subject: (xwrite): Use STDOUT_FILENO instead of literal `1'. X-Git-Tag: TEXTUTILS-1_22i~10 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=832dfa7e1f7fff31193c08497cc1f7685e4bb699;p=thirdparty%2Fcoreutils.git (xwrite): Use STDOUT_FILENO instead of literal `1'. --- 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"));