summaryrefslogtreecommitdiff
path: root/head.c
diff options
context:
space:
mode:
authorMatt Kraai2001-01-18 02:57:08 +0000
committerMatt Kraai2001-01-18 02:57:08 +0000
commit12f417edbd21b322a8eaa8feb0ab238f13fa83c6 (patch)
tree06f9de2e4c7d33d29a448fb1c42ed1beafe18e6e /head.c
parentc9acf8c766a9a2cc00449db5dea506d7663ad26b (diff)
downloadbusybox-12f417edbd21b322a8eaa8feb0ab238f13fa83c6.zip
busybox-12f417edbd21b322a8eaa8feb0ab238f13fa83c6.tar.gz
Eliminate calls of the form "fprintf(stdout,". Thanks for the idea to
Vladimir N. Oleynik.
Diffstat (limited to 'head.c')
-rw-r--r--head.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/head.c b/head.c
index 6e05ede..a0ca453 100644
--- a/head.c
+++ b/head.c
@@ -76,7 +76,7 @@ int head_main(int argc, char **argv)
}
if (fp) {
if (need_headers) {
- fprintf(stdout, "==> %s <==\n", argv[optind]);
+ printf("==> %s <==\n", argv[optind]);
}
head(len, fp);
if (errno) {
@@ -85,7 +85,7 @@ int head_main(int argc, char **argv)
errno = 0;
}
if (optind < argc - 1)
- fprintf(stdout, "\n");
+ putchar('\n');
if (fp != stdin)
fclose(fp);
}