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). --- loginutils/login.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'loginutils') diff --git a/loginutils/login.c b/loginutils/login.c index 7f89075..dfdc58b 100644 --- a/loginutils/login.c +++ b/loginutils/login.c @@ -125,7 +125,7 @@ static void die_if_nologin_and_non_root(int amroot) fp = fopen("/etc/nologin", "r"); if (fp) { while ((c = getc(fp)) != EOF) - putchar((c=='\n') ? '\r' : c); + bb_putchar((c=='\n') ? '\r' : c); fflush(stdout); fclose(fp); } else -- cgit v1.1