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 /util-linux/more.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 'util-linux/more.c')
-rw-r--r-- | util-linux/more.c | 12 |
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; | |||
54 | static void gotsig(int sig) | 54 | static void gotsig(int sig) |
55 | { | 55 | { |
56 | setTermSettings(fileno(cin), &initial_settings); | 56 | setTermSettings(fileno(cin), &initial_settings); |
57 | fprintf(stdout, "\n"); | 57 | putchar('\n'); |
58 | exit(TRUE); | 58 | exit(EXIT_FAILURE); |
59 | } | 59 | } |
60 | #endif /* BB_FEATURE_USE_TERMIOS */ | 60 | #endif /* BB_FEATURE_USE_TERMIOS */ |
61 | 61 | ||
@@ -117,19 +117,19 @@ extern int more_main(int argc, char **argv) | |||
117 | 117 | ||
118 | please_display_more_prompt = 0; | 118 | please_display_more_prompt = 0; |
119 | lines = 0; | 119 | lines = 0; |
120 | len = fprintf(stdout, "--More-- "); | 120 | len = printf("--More-- "); |
121 | if (file != stdin) { | 121 | if (file != stdin) { |
122 | #if _FILE_OFFSET_BITS == 64 | 122 | #if _FILE_OFFSET_BITS == 64 |
123 | len += fprintf(stdout, "(%d%% of %lld bytes)", | 123 | len += printf("(%d%% of %lld bytes)", |
124 | #else | 124 | #else |
125 | len += fprintf(stdout, "(%d%% of %ld bytes)", | 125 | len += printf("(%d%% of %ld bytes)", |
126 | #endif | 126 | #endif |
127 | (int) (100 * | 127 | (int) (100 * |
128 | ((double) ftell(file) / | 128 | ((double) ftell(file) / |
129 | (double) st.st_size)), | 129 | (double) st.st_size)), |
130 | st.st_size); | 130 | st.st_size); |
131 | } | 131 | } |
132 | len += fprintf(stdout, "%s", | 132 | len += printf("%s", |
133 | #ifdef BB_FEATURE_USE_TERMIOS | 133 | #ifdef BB_FEATURE_USE_TERMIOS |
134 | "" | 134 | "" |
135 | #else | 135 | #else |