]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(xwrite): Use STDOUT_FILENO instead of literal `1'.
authorJim Meyering <jim@meyering.net>
Sun, 11 Apr 1999 03:42:21 +0000 (03:42 +0000)
committerJim Meyering <jim@meyering.net>
Sun, 11 Apr 1999 03:42:21 +0000 (03:42 +0000)
src/tail.c

index 93083090b4a08536b542a26f209395e32a2672f7..0e0d0e8b5785f1456670a817c24d983eb96d0f1d 100644 (file)
@@ -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"));