diff options
author | Matt Kraai <kraai@debian.org> | 2001-01-18 02:57:08 +0000 |
---|---|---|
committer | Matt Kraai <kraai@debian.org> | 2001-01-18 02:57:08 +0000 |
commit | 12f417edbd21b322a8eaa8feb0ab238f13fa83c6 (patch) | |
tree | 06f9de2e4c7d33d29a448fb1c42ed1beafe18e6e /coreutils/head.c | |
parent | c9acf8c766a9a2cc00449db5dea506d7663ad26b (diff) | |
download | busybox-w32-12f417edbd21b322a8eaa8feb0ab238f13fa83c6.tar.gz busybox-w32-12f417edbd21b322a8eaa8feb0ab238f13fa83c6.tar.bz2 busybox-w32-12f417edbd21b322a8eaa8feb0ab238f13fa83c6.zip |
Eliminate calls of the form "fprintf(stdout,". Thanks for the idea to
Vladimir N. Oleynik.
Diffstat (limited to 'coreutils/head.c')
-rw-r--r-- | coreutils/head.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/coreutils/head.c b/coreutils/head.c index 6e05eded5..a0ca453de 100644 --- a/coreutils/head.c +++ b/coreutils/head.c | |||
@@ -76,7 +76,7 @@ int head_main(int argc, char **argv) | |||
76 | } | 76 | } |
77 | if (fp) { | 77 | if (fp) { |
78 | if (need_headers) { | 78 | if (need_headers) { |
79 | fprintf(stdout, "==> %s <==\n", argv[optind]); | 79 | printf("==> %s <==\n", argv[optind]); |
80 | } | 80 | } |
81 | head(len, fp); | 81 | head(len, fp); |
82 | if (errno) { | 82 | if (errno) { |
@@ -85,7 +85,7 @@ int head_main(int argc, char **argv) | |||
85 | errno = 0; | 85 | errno = 0; |
86 | } | 86 | } |
87 | if (optind < argc - 1) | 87 | if (optind < argc - 1) |
88 | fprintf(stdout, "\n"); | 88 | putchar('\n'); |
89 | if (fp != stdin) | 89 | if (fp != stdin) |
90 | fclose(fp); | 90 | fclose(fp); |
91 | } | 91 | } |