From 6ca409e0e4c198fe3081346eebbae3f068fe605a Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Sun, 12 Aug 2007 20:58:27 +0000 Subject: trylink: produce even more info about final link stage trylink: explain how to modify link and drastically decrease amount of padding (unfortunately, needs hand editing ATM). *: add ALIGN1 / ALIGN2 to global strings and arrays of bytes and shorts size saving: 0.5k --- init/init.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'init') diff --git a/init/init.c b/init/init.c index 5c7efe210..a196ab3ed 100644 --- a/init/init.c +++ b/init/init.c @@ -106,7 +106,7 @@ enum { #endif }; -static const char * const environment[] = { +static const char *const environment[] = { "HOME=/", bb_PATH_root_path, "SHELL=/bin/sh", @@ -457,7 +457,7 @@ static pid_t run(const struct init_action *a) #if !defined(__UCLIBC__) || defined(__ARCH_HAS_MMU__) if (a->action & ASKFIRST) { - static const char press_enter[] = + static const char press_enter[] ALIGN1 = #ifdef CUSTOMIZED_BANNER #include CUSTOMIZED_BANNER #endif @@ -923,7 +923,7 @@ int init_main(int argc, char **argv) chdir("/"); setsid(); { - const char * const *e; + const char *const *e; /* Make sure environs is set to something sane */ for (e = environment; *e; e++) putenv((char *) *e); -- cgit v1.2.3