diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-09-27 10:20:47 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-09-27 10:20:47 +0000 |
commit | 4daad9004d8f07991516970a1cbd77756fae7041 (patch) | |
tree | f1a17e4b168ef8fdf8af92ac5ce8deba89d38db2 /util-linux/fdisk_osf.c | |
parent | 1acdc89e992eb3f0548ff48ba586b31c9a0ae232 (diff) | |
download | busybox-w32-4daad9004d8f07991516970a1cbd77756fae7041.tar.gz busybox-w32-4daad9004d8f07991516970a1cbd77756fae7041.tar.bz2 busybox-w32-4daad9004d8f07991516970a1cbd77756fae7041.zip |
introduce bb_putchar(). saves ~1800 on uclibc (less on glibc).
Diffstat (limited to 'util-linux/fdisk_osf.c')
-rw-r--r-- | util-linux/fdisk_osf.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/util-linux/fdisk_osf.c b/util-linux/fdisk_osf.c index f6486d5f9..726138265 100644 --- a/util-linux/fdisk_osf.c +++ b/util-linux/fdisk_osf.c | |||
@@ -394,7 +394,7 @@ bsd_select(void) | |||
394 | #endif | 394 | #endif |
395 | 395 | ||
396 | while (1) { | 396 | while (1) { |
397 | putchar('\n'); | 397 | bb_putchar('\n'); |
398 | switch (tolower(read_nonempty("BSD disklabel command (m for help): "))) { | 398 | switch (tolower(read_nonempty("BSD disklabel command (m for help): "))) { |
399 | case 'd': | 399 | case 'd': |
400 | xbsd_delete_part(); | 400 | xbsd_delete_part(); |
@@ -521,7 +521,7 @@ xbsd_print_disklabel(int show_all) | |||
521 | printf(" ecc"); | 521 | printf(" ecc"); |
522 | if (lp->d_flags & BSD_D_BADSECT) | 522 | if (lp->d_flags & BSD_D_BADSECT) |
523 | printf(" badsect"); | 523 | printf(" badsect"); |
524 | puts(""); | 524 | bb_putchar('\n'); |
525 | /* On various machines the fields of *lp are short/int/long */ | 525 | /* On various machines the fields of *lp are short/int/long */ |
526 | /* In order to avoid problems, we cast them all to long. */ | 526 | /* In order to avoid problems, we cast them all to long. */ |
527 | printf("bytes/sector: %ld\n", (long) lp->d_secsize); | 527 | printf("bytes/sector: %ld\n", (long) lp->d_secsize); |
@@ -588,7 +588,7 @@ xbsd_print_disklabel(int show_all) | |||
588 | printf("%22.22s", ""); | 588 | printf("%22.22s", ""); |
589 | break; | 589 | break; |
590 | } | 590 | } |
591 | puts(""); | 591 | bb_putchar('\n'); |
592 | } | 592 | } |
593 | } | 593 | } |
594 | } | 594 | } |