diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2006-10-26 23:21:47 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2006-10-26 23:21:47 +0000 |
commit | f0ed376eda5d5c25d270e5100a881fb2d801bee6 (patch) | |
tree | 79166b700c497fbe798b6031e5bbff97e0933573 /coreutils/cal.c | |
parent | 670a6626cabc1498f32b35f959591f8621d8447e (diff) | |
download | busybox-w32-f0ed376eda5d5c25d270e5100a881fb2d801bee6.tar.gz busybox-w32-f0ed376eda5d5c25d270e5100a881fb2d801bee6.tar.bz2 busybox-w32-f0ed376eda5d5c25d270e5100a881fb2d801bee6.zip |
remove bb_printf and the like
Diffstat (limited to 'coreutils/cal.c')
-rw-r--r-- | coreutils/cal.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/coreutils/cal.c b/coreutils/cal.c index e2bc5ab12..6f5f0a434 100644 --- a/coreutils/cal.c +++ b/coreutils/cal.c | |||
@@ -139,7 +139,7 @@ int cal_main(int argc, char **argv) | |||
139 | 139 | ||
140 | day_array(month, year, dp); | 140 | day_array(month, year, dp); |
141 | len = sprintf(lineout, "%s %d", month_names[month - 1], year); | 141 | len = sprintf(lineout, "%s %d", month_names[month - 1], year); |
142 | bb_printf("%*s%s\n%s\n", | 142 | printf("%*s%s\n%s\n", |
143 | ((7*julian + WEEK_LEN) - len) / 2, "", | 143 | ((7*julian + WEEK_LEN) - len) / 2, "", |
144 | lineout, day_headings); | 144 | lineout, day_headings); |
145 | for (row = 0; row < 6; row++) { | 145 | for (row = 0; row < 6; row++) { |
@@ -170,9 +170,9 @@ int cal_main(int argc, char **argv) | |||
170 | center(month_names[month + 1], week_len, HEAD_SEP); | 170 | center(month_names[month + 1], week_len, HEAD_SEP); |
171 | } | 171 | } |
172 | center(month_names[month + 2 - julian], week_len, 0); | 172 | center(month_names[month + 2 - julian], week_len, 0); |
173 | bb_printf("\n%s%*s%s", day_headings, HEAD_SEP, "", day_headings); | 173 | printf("\n%s%*s%s", day_headings, HEAD_SEP, "", day_headings); |
174 | if (!julian) { | 174 | if (!julian) { |
175 | bb_printf("%*s%s", HEAD_SEP, "", day_headings); | 175 | printf("%*s%s", HEAD_SEP, "", day_headings); |
176 | } | 176 | } |
177 | putchar('\n'); | 177 | putchar('\n'); |
178 | for (row = 0; row < (6*7); row += 7) { | 178 | for (row = 0; row < (6*7); row += 7) { |
@@ -186,7 +186,7 @@ int cal_main(int argc, char **argv) | |||
186 | } | 186 | } |
187 | } | 187 | } |
188 | 188 | ||
189 | bb_fflush_stdout_and_exit(0); | 189 | fflush_stdout_and_exit(0); |
190 | } | 190 | } |
191 | 191 | ||
192 | /* | 192 | /* |
@@ -281,7 +281,7 @@ static void center(char *str, int len, int separate) | |||
281 | { | 281 | { |
282 | int n = strlen(str); | 282 | int n = strlen(str); |
283 | len -= n; | 283 | len -= n; |
284 | bb_printf("%*s%*s", (len/2) + n, str, (len/2) + (len % 2) + separate, ""); | 284 | printf("%*s%*s", (len/2) + n, str, (len/2) + (len % 2) + separate, ""); |
285 | } | 285 | } |
286 | 286 | ||
287 | static void blank_string(char *buf, size_t buflen) | 287 | static void blank_string(char *buf, size_t buflen) |