projects
/
platform
/
upstream
/
coreutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
35af2e8
)
(xwrite): Use STDOUT_FILENO instead of literal `1'.
author
Jim Meyering
<jim@meyering.net>
Sun, 11 Apr 1999 03:42:21 +0000
(
03:42
+0000)
committer
Jim Meyering
<jim@meyering.net>
Sun, 11 Apr 1999 03:42:21 +0000
(
03:42
+0000)
src/tail.c
patch
|
blob
|
history
diff --git
a/src/tail.c
b/src/tail.c
index
9308309
..
0e0d0e8
100644
(file)
--- 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"));