From 4daad9004d8f07991516970a1cbd77756fae7041 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Thu, 27 Sep 2007 10:20:47 +0000 Subject: introduce bb_putchar(). saves ~1800 on uclibc (less on glibc). --- coreutils/stty.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'coreutils/stty.c') 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, ...) G.current_col++; if (buf[0] != '\n') { if (G.current_col + buflen >= max_col) { - putchar('\n'); + bb_putchar('\n'); G.current_col = 0; } else - putchar(' '); + bb_putchar(' '); } } fputs(buf, stdout); @@ -618,7 +618,7 @@ static void display_recoverable(const struct termios *mode, (unsigned long) mode->c_cflag, (unsigned long) mode->c_lflag); for (i = 0; i < NCCS; ++i) printf(":%x", (unsigned int) mode->c_cc[i]); - putchar('\n'); + bb_putchar('\n'); } static void display_speed(const struct termios *mode, int fancy) -- cgit v1.2.3