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:
+1
-1
@@ -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"));
|
||||
|
||||
Reference in New Issue
Block a user