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 --- e2fsprogs/old_e2fsprogs/chattr.c | 2 +- e2fsprogs/old_e2fsprogs/fsck.c | 2 +- e2fsprogs/old_e2fsprogs/lsattr.c | 2 +- e2fsprogs/old_e2fsprogs/tune2fs.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'e2fsprogs/old_e2fsprogs') diff --git a/e2fsprogs/old_e2fsprogs/chattr.c b/e2fsprogs/old_e2fsprogs/chattr.c index b933938..ae39d92 100644 --- a/e2fsprogs/old_e2fsprogs/chattr.c +++ b/e2fsprogs/old_e2fsprogs/chattr.c @@ -170,7 +170,7 @@ static int chattr_dir_proc(const char *dir_name, struct dirent *de, return 0; } -int chattr_main(int argc, char **argv); +int chattr_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; int chattr_main(int argc, char **argv) { int i; diff --git a/e2fsprogs/old_e2fsprogs/fsck.c b/e2fsprogs/old_e2fsprogs/fsck.c index 7e73838..d4914a5 100644 --- a/e2fsprogs/old_e2fsprogs/fsck.c +++ b/e2fsprogs/old_e2fsprogs/fsck.c @@ -1321,7 +1321,7 @@ static void PRS(int argc, char **argv) max_running = atoi(tmp); } -int fsck_main(int argc, char **argv); +int fsck_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; int fsck_main(int argc, char **argv) { int i, status = 0; diff --git a/e2fsprogs/old_e2fsprogs/lsattr.c b/e2fsprogs/old_e2fsprogs/lsattr.c index bbc03aa..277ec7c 100644 --- a/e2fsprogs/old_e2fsprogs/lsattr.c +++ b/e2fsprogs/old_e2fsprogs/lsattr.c @@ -112,7 +112,7 @@ static int lsattr_dir_proc(const char *dir_name, struct dirent *de, return 0; } -int lsattr_main(int argc, char **argv); +int lsattr_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; int lsattr_main(int argc, char **argv) { int i; diff --git a/e2fsprogs/old_e2fsprogs/tune2fs.c b/e2fsprogs/old_e2fsprogs/tune2fs.c index 920a50c..c5c84d6 100644 --- a/e2fsprogs/old_e2fsprogs/tune2fs.c +++ b/e2fsprogs/old_e2fsprogs/tune2fs.c @@ -577,7 +577,7 @@ static void tune2fs_clean_up(void) if (ENABLE_FEATURE_CLEAN_UP && journal_device) free(journal_device); } -int tune2fs_main(int argc, char **argv); +int tune2fs_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; int tune2fs_main(int argc, char **argv) { errcode_t retval; -- cgit v1.1