diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-10-11 14:05:36 +0400 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-10-11 14:05:36 +0400 |
commit | 9b49a5ed8551e46892af3f676e5d96d21b540e3c (patch) | |
tree | 3d177ef7f3f5e8338690718c86012203ef29a7da /loginutils | |
parent | 8d82cf72c99a8ab8bdbb0b179a1f1135a004c47a (diff) |
add -fvisibility=hidden to CC flags, mark XXX_main functions
EXTERNALLY_VISIBLE. 5% size reduction of libbusybox.so
Diffstat (limited to 'loginutils')
-rw-r--r-- | loginutils/addgroup.c | 2 | ||||
-rw-r--r-- | loginutils/adduser.c | 2 | ||||
-rw-r--r-- | loginutils/chpasswd.c | 2 | ||||
-rw-r--r-- | loginutils/cryptpw.c | 2 | ||||
-rw-r--r-- | loginutils/deluser.c | 2 | ||||
-rw-r--r-- | loginutils/getty.c | 2 | ||||
-rw-r--r-- | loginutils/login.c | 2 | ||||
-rw-r--r-- | loginutils/passwd.c | 2 | ||||
-rw-r--r-- | loginutils/su.c | 2 | ||||
-rw-r--r-- | loginutils/sulogin.c | 2 | ||||
-rw-r--r-- | loginutils/vlock.c | 2 |
11 files changed, 11 insertions, 11 deletions
diff --git a/loginutils/addgroup.c b/loginutils/addgroup.c index b213074a6..9b2c6790f 100644 --- a/loginutils/addgroup.c +++ b/loginutils/addgroup.c @@ -122,7 +122,7 @@ static void add_user_to_group(char **args, * If called with two non-option arguments, addgroup * will add an existing user to an existing group. */ -int addgroup_main(int argc, char **argv); +int addgroup_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; int addgroup_main(int argc, char **argv) { char *group; diff --git a/loginutils/adduser.c b/loginutils/adduser.c index 149ea9c4b..5c624285f 100644 --- a/loginutils/adduser.c +++ b/loginutils/adduser.c @@ -165,7 +165,7 @@ static int adduser(struct passwd *p) * * can be customized via command-line parameters. */ -int adduser_main(int argc, char **argv); +int adduser_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; int adduser_main(int argc, char **argv) { struct passwd pw; diff --git a/loginutils/chpasswd.c b/loginutils/chpasswd.c index 61f9b896a..7d47899fe 100644 --- a/loginutils/chpasswd.c +++ b/loginutils/chpasswd.c @@ -20,7 +20,7 @@ static const char chpasswd_longopts[] ALIGN1 = #define OPT_ENC 1 #define OPT_MD5 2 -int chpasswd_main(int argc, char **argv); +int chpasswd_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; int chpasswd_main(int argc, char **argv) { char *name, *pass; diff --git a/loginutils/cryptpw.c b/loginutils/cryptpw.c index 0847857de..06817a681 100644 --- a/loginutils/cryptpw.c +++ b/loginutils/cryptpw.c @@ -7,7 +7,7 @@ #include "libbb.h" -int cryptpw_main(int argc, char **argv); +int cryptpw_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; int cryptpw_main(int argc, char **argv) { char salt[sizeof("$N$XXXXXXXX")]; diff --git a/loginutils/deluser.c b/loginutils/deluser.c index 0e4f02ddc..c67ad7200 100644 --- a/loginutils/deluser.c +++ b/loginutils/deluser.c @@ -93,7 +93,7 @@ static void del_line_matching(char **args, free(new); } -int deluser_main(int argc, char **argv); +int deluser_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; int deluser_main(int argc, char **argv) { if (argc == 2 diff --git a/loginutils/getty.c b/loginutils/getty.c index db8d7cef5..bc735d0c4 100644 --- a/loginutils/getty.c +++ b/loginutils/getty.c @@ -699,7 +699,7 @@ static void update_utmp(const char *line) #endif /* SYSV_STYLE */ -int getty_main(int argc, char **argv); +int getty_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; int getty_main(int argc, char **argv) { int nullfd; diff --git a/loginutils/login.c b/loginutils/login.c index dfdc58b30..bddc0f533 100644 --- a/loginutils/login.c +++ b/loginutils/login.c @@ -219,7 +219,7 @@ static void alarm_handler(int sig ATTRIBUTE_UNUSED) exit(EXIT_SUCCESS); } -int login_main(int argc, char **argv); +int login_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; int login_main(int argc, char **argv) { enum { diff --git a/loginutils/passwd.c b/loginutils/passwd.c index ce333b49e..99afde223 100644 --- a/loginutils/passwd.c +++ b/loginutils/passwd.c @@ -70,7 +70,7 @@ static char* new_password(const struct passwd *pw, uid_t myuid, int algo) return ret; } -int passwd_main(int argc, char **argv); +int passwd_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; int passwd_main(int argc, char **argv) { enum { diff --git a/loginutils/su.c b/loginutils/su.c index 123907e28..8c55170ca 100644 --- a/loginutils/su.c +++ b/loginutils/su.c @@ -11,7 +11,7 @@ #define SU_OPT_mp (3) #define SU_OPT_l (4) -int su_main(int argc, char **argv); +int su_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; int su_main(int argc, char **argv) { unsigned flags; diff --git a/loginutils/sulogin.c b/loginutils/sulogin.c index 5c73bda93..7f100a162 100644 --- a/loginutils/sulogin.c +++ b/loginutils/sulogin.c @@ -34,7 +34,7 @@ static void catchalarm(int ATTRIBUTE_UNUSED junk) } -int sulogin_main(int argc, char **argv); +int sulogin_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; int sulogin_main(int argc, char **argv) { char *cp; diff --git a/loginutils/vlock.c b/loginutils/vlock.c index 8e3a1ea4b..6e928e239 100644 --- a/loginutils/vlock.c +++ b/loginutils/vlock.c @@ -33,7 +33,7 @@ static void acquire_vt(int signo) ioctl(vfd, VT_RELDISP, VT_ACKACQ); } -int vlock_main(int argc, char **argv); +int vlock_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; int vlock_main(int argc, char **argv) { sigset_t sig; |