aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlandley <landley@69ca8d6d-28ef-0310-b511-8ec308f3f277>2005-05-07 07:53:16 +0000
committerlandley <landley@69ca8d6d-28ef-0310-b511-8ec308f3f277>2005-05-07 07:53:16 +0000
commit70ec70f8d124eeeae5487aca7265bb26c83b129a (patch)
tree6b07f2a23ff3707ee46edc01a08b9b6884d8ec03
parentbeabe60650d0ffc26de94462182c9073578c18eb (diff)
downloadbusybox-w32-70ec70f8d124eeeae5487aca7265bb26c83b129a.tar.gz
busybox-w32-70ec70f8d124eeeae5487aca7265bb26c83b129a.tar.bz2
busybox-w32-70ec70f8d124eeeae5487aca7265bb26c83b129a.zip
Shaun Jackman pointed out that dprintf(STDOUT_FILENO,...) is just a printf.
git-svn-id: svn://busybox.net/trunk/busybox@10263 69ca8d6d-28ef-0310-b511-8ec308f3f277
-rw-r--r--coreutils/tail.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/coreutils/tail.c b/coreutils/tail.c
index e3f89d2ee..ef0038385 100644
--- a/coreutils/tail.c
+++ b/coreutils/tail.c
@@ -62,7 +62,8 @@ static int status
62static void tail_xprint_header(const char *fmt, const char *filename) 62static void tail_xprint_header(const char *fmt, const char *filename)
63{ 63{
64 /* If we get an output error, there is really no sense in continuing. */ 64 /* If we get an output error, there is really no sense in continuing. */
65 if (dprintf(STDOUT_FILENO, fmt, filename) < 0) { 65 if (printf(fmt, filename) < 0 ||
66 fflush(stdout) < 0) {
66 bb_perror_nomsg_and_die(); 67 bb_perror_nomsg_and_die();
67 } 68 }
68} 69}