1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-08-07 17:19:18 +02:00

(xwrite): Use STDOUT_FILENO instead of literal `1'.

This commit is contained in:
Jim Meyering
1999-04-11 03:42:21 +00:00
parent 35af2e8613
commit 832dfa7e1f
+1 -1
View 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"));