aboutsummaryrefslogtreecommitdiff
path: root/util-linux/more.c
diff options
context:
space:
mode:
authorMatt Kraai <kraai@debian.org>2001-01-18 02:57:08 +0000
committerMatt Kraai <kraai@debian.org>2001-01-18 02:57:08 +0000
commit12f417edbd21b322a8eaa8feb0ab238f13fa83c6 (patch)
tree06f9de2e4c7d33d29a448fb1c42ed1beafe18e6e /util-linux/more.c
parentc9acf8c766a9a2cc00449db5dea506d7663ad26b (diff)
downloadbusybox-12f417edbd21b322a8eaa8feb0ab238f13fa83c6.tar.gz
Eliminate calls of the form "fprintf(stdout,". Thanks for the idea to
Vladimir N. Oleynik.
Diffstat (limited to 'util-linux/more.c')
-rw-r--r--util-linux/more.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/util-linux/more.c b/util-linux/more.c
index 9310cf930..538708caa 100644
--- a/util-linux/more.c
+++ b/util-linux/more.c
@@ -54,8 +54,8 @@ static struct termios initial_settings, new_settings;
static void gotsig(int sig)
{
setTermSettings(fileno(cin), &initial_settings);
- fprintf(stdout, "\n");
- exit(TRUE);
+ putchar('\n');
+ exit(EXIT_FAILURE);
}
#endif /* BB_FEATURE_USE_TERMIOS */
@@ -117,19 +117,19 @@ extern int more_main(int argc, char **argv)
please_display_more_prompt = 0;
lines = 0;
- len = fprintf(stdout, "--More-- ");
+ len = printf("--More-- ");
if (file != stdin) {
#if _FILE_OFFSET_BITS == 64
- len += fprintf(stdout, "(%d%% of %lld bytes)",
+ len += printf("(%d%% of %lld bytes)",
#else
- len += fprintf(stdout, "(%d%% of %ld bytes)",
+ len += printf("(%d%% of %ld bytes)",
#endif
(int) (100 *
((double) ftell(file) /
(double) st.st_size)),
st.st_size);
}
- len += fprintf(stdout, "%s",
+ len += printf("%s",
#ifdef BB_FEATURE_USE_TERMIOS
""
#else