Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.busybox.net/busybox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-09-27 14:20:47 +0400
committerDenis Vlasenko <vda.linux@googlemail.com>2007-09-27 14:20:47 +0400
commit4daad9004d8f07991516970a1cbd77756fae7041 (patch)
treef1a17e4b168ef8fdf8af92ac5ce8deba89d38db2 /shell/lash.c
parent1acdc89e992eb3f0548ff48ba586b31c9a0ae232 (diff)
introduce bb_putchar(). saves ~1800 on uclibc (less on glibc).
Diffstat (limited to 'shell/lash.c')
-rw-r--r--shell/lash.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/shell/lash.c b/shell/lash.c
index 889fe49d8..4ce6d4235 100644
--- a/shell/lash.c
+++ b/shell/lash.c
@@ -319,7 +319,7 @@ static int builtin_help(struct child_prog ATTRIBUTE_UNUSED *dummy)
continue;
printf("%s\t%s\n", x->cmd, x->descr);
}
- putchar('\n');
+ bb_putchar('\n');
return EXIT_SUCCESS;
}
@@ -677,7 +677,7 @@ static int get_command_bufsiz(FILE * source, char *command)
if (!fgets(command, BUFSIZ - 2, source)) {
if (source == stdin)
- puts("");
+ bb_putchar('\n');
return 1;
}