diff options
author | Denis Vlasenko | 2007-09-27 10:20:47 +0000 |
---|---|---|
committer | Denis Vlasenko | 2007-09-27 10:20:47 +0000 |
commit | 4daad9004d8f07991516970a1cbd77756fae7041 (patch) | |
tree | f1a17e4b168ef8fdf8af92ac5ce8deba89d38db2 /util-linux/fdisk.c | |
parent | 1acdc89e992eb3f0548ff48ba586b31c9a0ae232 (diff) | |
download | busybox-4daad9004d8f07991516970a1cbd77756fae7041.zip busybox-4daad9004d8f07991516970a1cbd77756fae7041.tar.gz |
introduce bb_putchar(). saves ~1800 on uclibc (less on glibc).
Diffstat (limited to 'util-linux/fdisk.c')
-rw-r--r-- | util-linux/fdisk.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/util-linux/fdisk.c b/util-linux/fdisk.c index 7981abc..9f30571 100644 --- a/util-linux/fdisk.c +++ b/util-linux/fdisk.c @@ -892,7 +892,7 @@ list_types(const char *const *sys) next = ++done; } } while (done < last[0]); - putchar('\n'); + bb_putchar('\n'); } #endif /* FEATURE_FDISK_WRITABLE */ @@ -2473,13 +2473,13 @@ print_buffer(char *pbuffer) printf("0x%03X:", i); printf(" %02X", (unsigned char) pbuffer[i]); if (l == MAX_PER_LINE - 1) { - puts(""); + bb_putchar('\n'); l = -1; } } if (l > 0) - puts(""); - puts(""); + bb_putchar('\n'); + bb_putchar('\n'); } static void @@ -2527,7 +2527,7 @@ xselect(void) char c; while (1) { - putchar('\n'); + bb_putchar('\n'); c = tolower(read_nonempty("Expert command (m for help): ")); switch (c) { case 'a': @@ -2588,7 +2588,7 @@ xselect(void) break; case 'q': close(fd); - puts(""); + bb_putchar('\n'); exit(0); case 'r': return; @@ -2867,7 +2867,7 @@ int fdisk_main(int argc, char **argv) while (1) { int c; - putchar('\n'); + bb_putchar('\n'); c = tolower(read_nonempty("Command (m for help): ")); switch (c) { case 'a': @@ -2947,7 +2947,7 @@ int fdisk_main(int argc, char **argv) break; case 'q': close(fd); - puts(""); + bb_putchar('\n'); return 0; case 's': #if ENABLE_FEATURE_SUN_LABEL |