From 4daad9004d8f07991516970a1cbd77756fae7041 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Thu, 27 Sep 2007 10:20:47 +0000 Subject: introduce bb_putchar(). saves ~1800 on uclibc (less on glibc). --- shell/lash.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'shell/lash.c') 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; } -- cgit v1.2.3