aboutsummaryrefslogtreecommitdiff
path: root/coreutils/catv.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-09-27 10:20:47 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-09-27 10:20:47 +0000
commit4daad9004d8f07991516970a1cbd77756fae7041 (patch)
treef1a17e4b168ef8fdf8af92ac5ce8deba89d38db2 /coreutils/catv.c
parent1acdc89e992eb3f0548ff48ba586b31c9a0ae232 (diff)
downloadbusybox-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/catv.c')
-rw-r--r--coreutils/catv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/coreutils/catv.c b/coreutils/catv.c
index ce927465b..5d5a5500f 100644
--- a/coreutils/catv.c
+++ b/coreutils/catv.c
@@ -62,13 +62,13 @@ int catv_main(int argc, char **argv)
62 if (c < 32) { 62 if (c < 32) {
63 if (c == 10) { 63 if (c == 10) {
64 if (flags & CATV_OPT_e) 64 if (flags & CATV_OPT_e)
65 putchar('$'); 65 bb_putchar('$');
66 } else if (flags & (c==9 ? CATV_OPT_t : CATV_OPT_v)) { 66 } else if (flags & (c==9 ? CATV_OPT_t : CATV_OPT_v)) {
67 printf("^%c", c+'@'); 67 printf("^%c", c+'@');
68 continue; 68 continue;
69 } 69 }
70 } 70 }
71 putchar(c); 71 bb_putchar(c);
72 } 72 }
73 } 73 }
74 if (ENABLE_FEATURE_CLEAN_UP && fd) 74 if (ENABLE_FEATURE_CLEAN_UP && fd)