diff options
author | Jim Meyering <jim@meyering.net> | 1999-04-11 03:42:21 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1999-04-11 03:42:21 +0000 |
commit | 832dfa7e1f7fff31193c08497cc1f7685e4bb699 (patch) | |
tree | b4376bc6f51d7c5ab121aebbd7b74f897086cc81 /src | |
parent | 35af2e86139176343255e9f50622fd0c7386b81d (diff) | |
download | coreutils-832dfa7e1f7fff31193c08497cc1f7685e4bb699.tar.xz |
(xwrite): Use STDOUT_FILENO instead of literal `1'.
Diffstat (limited to 'src')
-rw-r--r-- | src/tail.c | 2 |
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")); |