aboutsummaryrefslogtreecommitdiff
path: root/coreutils/uuencode.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/uuencode.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/uuencode.c')
-rw-r--r--coreutils/uuencode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/coreutils/uuencode.c b/coreutils/uuencode.c
index 56d68820e..17def8d9a 100644
--- a/coreutils/uuencode.c
+++ b/coreutils/uuencode.c
@@ -48,9 +48,9 @@ int uuencode_main(int argc, char **argv)
48 bb_perror_msg_and_die(bb_msg_read_error); 48 bb_perror_msg_and_die(bb_msg_read_error);
49 /* Encode the buffer we just read in */ 49 /* Encode the buffer we just read in */
50 bb_uuencode(dst_buf, src_buf, size, tbl); 50 bb_uuencode(dst_buf, src_buf, size, tbl);
51 putchar('\n'); 51 bb_putchar('\n');
52 if (tbl == bb_uuenc_tbl_std) { 52 if (tbl == bb_uuenc_tbl_std) {
53 putchar(tbl[size]); 53 bb_putchar(tbl[size]);
54 } 54 }
55 fflush(stdout); 55 fflush(stdout);
56 xwrite(STDOUT_FILENO, dst_buf, 4 * ((size + 2) / 3)); 56 xwrite(STDOUT_FILENO, dst_buf, 4 * ((size + 2) / 3));