aboutsummaryrefslogtreecommitdiff
path: root/toys/posix/head.c
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2019-04-16 16:53:27 -0500
committerRob Landley <rob@landley.net>2019-04-16 16:53:27 -0500
commit2a1f89e5d941a77e8c93ad0a5fe78229a4207d61 (patch)
treef54c6364e70eafb604bff6e078728e6faf66a57d /toys/posix/head.c
parent63a0e7afff271ac1b1df3309bbf35f52e4771419 (diff)
downloadtoybox-2a1f89e5d941a77e8c93ad0a5fe78229a4207d61.tar.gz
Add argument to xflush() so it can test for stdout err without flushing.
Diffstat (limited to 'toys/posix/head.c')
-rw-r--r--toys/posix/head.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/toys/posix/head.c b/toys/posix/head.c
index 7e34a714..38ab919e 100644
--- a/toys/posix/head.c
+++ b/toys/posix/head.c
@@ -40,7 +40,6 @@ static void do_head(int fd, char *name)
// Print an extra newline for all but the first file
if (TT.file_no) xprintf("\n");
xprintf("==> %s <==\n", name);
- xflush();
}
while ((toys.optflags&FLAG_c) ? bytes : lines) {