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/echo.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/echo.c')
-rw-r--r-- | coreutils/echo.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/coreutils/echo.c b/coreutils/echo.c index 085e8516c..851d2efb2 100644 --- a/coreutils/echo.c +++ b/coreutils/echo.c | |||
@@ -100,18 +100,18 @@ int bb_echo(char **argv) | |||
100 | c = bb_process_escape_sequence(&arg); | 100 | c = bb_process_escape_sequence(&arg); |
101 | } | 101 | } |
102 | } | 102 | } |
103 | putchar(c); | 103 | bb_putchar(c); |
104 | } | 104 | } |
105 | 105 | ||
106 | arg = *++argv; | 106 | arg = *++argv; |
107 | if (!arg) | 107 | if (!arg) |
108 | break; | 108 | break; |
109 | putchar(' '); | 109 | bb_putchar(' '); |
110 | } | 110 | } |
111 | 111 | ||
112 | newline_ret: | 112 | newline_ret: |
113 | if (nflag) { | 113 | if (nflag) { |
114 | putchar('\n'); | 114 | bb_putchar('\n'); |
115 | } | 115 | } |
116 | ret: | 116 | ret: |
117 | return fflush(stdout); | 117 | return fflush(stdout); |