aboutsummaryrefslogtreecommitdiff
path: root/libbb/login.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-06-27 02:52:20 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-06-27 02:52:20 +0000
commitdefc1ea34074e7882724c460260d307cdf981a70 (patch)
treefca9b9a5fe243f9c0c76b84824ea2ff92ea8e589 /libbb/login.c
parent26bc57d8b26425f23f4be974cce7bf35c95c9a1a (diff)
downloadbusybox-w32-defc1ea34074e7882724c460260d307cdf981a70.tar.gz
busybox-w32-defc1ea34074e7882724c460260d307cdf981a70.tar.bz2
busybox-w32-defc1ea34074e7882724c460260d307cdf981a70.zip
*: introduce and use FAST_FUNC: regparm on i386, otherwise no-on
text data bss dec hex filename 808035 611 6868 815514 c719a busybox_old 804472 611 6868 811951 c63af busybox_unstripped
Diffstat (limited to 'libbb/login.c')
-rw-r--r--libbb/login.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libbb/login.c b/libbb/login.c
index a5be2c8c9..346ff13eb 100644
--- a/libbb/login.c
+++ b/libbb/login.c
@@ -18,7 +18,7 @@
18static const char fmtstr_d[] ALIGN1 = "%A, %d %B %Y"; 18static const char fmtstr_d[] ALIGN1 = "%A, %d %B %Y";
19static const char fmtstr_t[] ALIGN1 = "%H:%M:%S"; 19static const char fmtstr_t[] ALIGN1 = "%H:%M:%S";
20 20
21void print_login_issue(const char *issue_file, const char *tty) 21void FAST_FUNC print_login_issue(const char *issue_file, const char *tty)
22{ 22{
23 FILE *fd; 23 FILE *fd;
24 int c; 24 int c;
@@ -86,7 +86,7 @@ void print_login_issue(const char *issue_file, const char *tty)
86 fflush(stdout); 86 fflush(stdout);
87} 87}
88 88
89void print_login_prompt(void) 89void FAST_FUNC print_login_prompt(void)
90{ 90{
91 char *hostname = safe_gethostname(); 91 char *hostname = safe_gethostname();
92 92
@@ -112,7 +112,7 @@ static const char forbid[] ALIGN1 =
112 "LD_NOWARN" "\0" 112 "LD_NOWARN" "\0"
113 "LD_KEEPDIR" "\0"; 113 "LD_KEEPDIR" "\0";
114 114
115int sanitize_env_if_suid(void) 115int FAST_FUNC sanitize_env_if_suid(void)
116{ 116{
117 const char *p; 117 const char *p;
118 118