From 9b49a5ed8551e46892af3f676e5d96d21b540e3c Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Thu, 11 Oct 2007 10:05:36 +0000 Subject: add -fvisibility=hidden to CC flags, mark XXX_main functions EXTERNALLY_VISIBLE. 5% size reduction of libbusybox.so --- sysklogd/klogd.c | 2 +- sysklogd/logger.c | 2 +- sysklogd/logread.c | 2 +- sysklogd/syslogd.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'sysklogd') diff --git a/sysklogd/klogd.c b/sysklogd/klogd.c index 2af410590..11642461d 100644 --- a/sysklogd/klogd.c +++ b/sysklogd/klogd.c @@ -35,7 +35,7 @@ static void klogd_signal(int sig ATTRIBUTE_UNUSED) #define KLOGD_LOGBUF_SIZE BUFSIZ #define log_buffer bb_common_bufsiz1 -int klogd_main(int argc, char **argv); +int klogd_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; int klogd_main(int argc, char **argv) { int i = i; /* silence gcc */ diff --git a/sysklogd/logger.c b/sysklogd/logger.c index 6e1debd67..e2d074605 100644 --- a/sysklogd/logger.c +++ b/sysklogd/logger.c @@ -81,7 +81,7 @@ static int pencode(char *s) } -int logger_main(int argc, char **argv); +int logger_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; int logger_main(int argc, char **argv) { char *str_p, *str_t; diff --git a/sysklogd/logread.c b/sysklogd/logread.c index 69a084ff6..6567df374 100644 --- a/sysklogd/logread.c +++ b/sysklogd/logread.c @@ -53,7 +53,7 @@ static void interrupted(int sig ATTRIBUTE_UNUSED) exit(0); } -int logread_main(int argc, char **argv); +int logread_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; int logread_main(int argc, char **argv) { int cur; diff --git a/sysklogd/syslogd.c b/sysklogd/syslogd.c index f27bd8379..284e5743c 100644 --- a/sysklogd/syslogd.c +++ b/sysklogd/syslogd.c @@ -556,7 +556,7 @@ static void do_syslogd(void) } /* for */ } -int syslogd_main(int argc, char **argv); +int syslogd_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; int syslogd_main(int argc, char **argv) { char OPTION_DECL; -- cgit v1.2.3