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 /coreutils/stty.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 'coreutils/stty.c')
-rw-r--r-- | coreutils/stty.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/coreutils/stty.c b/coreutils/stty.c index 863f28d92..1f0d4227e 100644 --- a/coreutils/stty.c +++ b/coreutils/stty.c | |||
@@ -475,10 +475,10 @@ static void wrapf(const char *message, ...) | |||
475 | G.current_col++; | 475 | G.current_col++; |
476 | if (buf[0] != '\n') { | 476 | if (buf[0] != '\n') { |
477 | if (G.current_col + buflen >= max_col) { | 477 | if (G.current_col + buflen >= max_col) { |
478 | putchar('\n'); | 478 | bb_putchar('\n'); |
479 | G.current_col = 0; | 479 | G.current_col = 0; |
480 | } else | 480 | } else |
481 | putchar(' '); | 481 | bb_putchar(' '); |
482 | } | 482 | } |
483 | } | 483 | } |
484 | fputs(buf, stdout); | 484 | fputs(buf, stdout); |
@@ -618,7 +618,7 @@ static void display_recoverable(const struct termios *mode, | |||
618 | (unsigned long) mode->c_cflag, (unsigned long) mode->c_lflag); | 618 | (unsigned long) mode->c_cflag, (unsigned long) mode->c_lflag); |
619 | for (i = 0; i < NCCS; ++i) | 619 | for (i = 0; i < NCCS; ++i) |
620 | printf(":%x", (unsigned int) mode->c_cc[i]); | 620 | printf(":%x", (unsigned int) mode->c_cc[i]); |
621 | putchar('\n'); | 621 | bb_putchar('\n'); |
622 | } | 622 | } |
623 | 623 | ||
624 | static void display_speed(const struct termios *mode, int fancy) | 624 | static void display_speed(const struct termios *mode, int fancy) |