diff options
Diffstat (limited to 'more.c')
-rw-r--r-- | more.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -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 |