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 /editors/ed.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 'editors/ed.c')
-rw-r--r-- | editors/ed.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/editors/ed.c b/editors/ed.c index cd3836a..31185d9 100644 --- a/editors/ed.c +++ b/editors/ed.c @@ -853,14 +853,14 @@ static int printLines(int num1, int num2, int expandFlag) ch &= 0x7f; } if (ch < ' ') { - fputc('^', stdout); + bb_putchar('^'); ch += '@'; } if (ch == 0x7f) { - fputc('^', stdout); + bb_putchar('^'); ch = '?'; } - fputc(ch, stdout); + bb_putchar(ch); } fputs("$\n", stdout); |