summaryrefslogtreecommitdiff
path: root/src/tac.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1994-11-17 12:49:38 +0000
committerJim Meyering <jim@meyering.net>1994-11-17 12:49:38 +0000
commitfdfd720ec4e44b9b35368c9ea483f56fa0b69847 (patch)
treec8ee846330b6b6cb51594f99f21f691071aea78d /src/tac.c
parent53c46c67ac349397e57f5d50ae400531186a7a81 (diff)
downloadcoreutils-fdfd720ec4e44b9b35368c9ea483f56fa0b69847.tar.xz
(output): Use STDOUT_FILENO instead of `1' in xwrite call.
Diffstat (limited to 'src/tac.c')
-rw-r--r--src/tac.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tac.c b/src/tac.c
index d4326a604..40e1ecb2a 100644
--- a/src/tac.c
+++ b/src/tac.c
@@ -600,7 +600,7 @@ output (start, past_end)
if (start == 0)
{
- xwrite (1, buffer, bytes_in_buffer);
+ xwrite (STDOUT_FILENO, buffer, bytes_in_buffer);
bytes_in_buffer = 0;
return;
}
@@ -611,7 +611,7 @@ output (start, past_end)
bcopy (start, buffer + bytes_in_buffer, bytes_available);
bytes_to_add -= bytes_available;
start += bytes_available;
- xwrite (1, buffer, WRITESIZE);
+ xwrite (STDOUT_FILENO, buffer, WRITESIZE);
bytes_in_buffer = 0;
bytes_available = WRITESIZE;
}