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/fold.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/fold.c')
-rw-r--r-- | coreutils/fold.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/coreutils/fold.c b/coreutils/fold.c index 6e422de59..a75f4666e 100644 --- a/coreutils/fold.c +++ b/coreutils/fold.c | |||
@@ -115,7 +115,7 @@ int fold_main(int argc, char **argv) | |||
115 | /* Found a blank. Don't output the part after it. */ | 115 | /* Found a blank. Don't output the part after it. */ |
116 | logical_end++; | 116 | logical_end++; |
117 | fwrite(line_out, sizeof(char), (size_t) logical_end, stdout); | 117 | fwrite(line_out, sizeof(char), (size_t) logical_end, stdout); |
118 | putchar('\n'); | 118 | bb_putchar('\n'); |
119 | /* Move the remainder to the beginning of the next line. | 119 | /* Move the remainder to the beginning of the next line. |
120 | The areas being copied here might overlap. */ | 120 | The areas being copied here might overlap. */ |
121 | memmove(line_out, line_out + logical_end, offset_out - logical_end); | 121 | memmove(line_out, line_out + logical_end, offset_out - logical_end); |