aboutsummaryrefslogtreecommitdiff
path: root/init/init.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-08-12 20:58:27 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-08-12 20:58:27 +0000
commit6ca409e0e4c198fe3081346eebbae3f068fe605a (patch)
tree060cb05d99220a1eda399194d1209c269f0e8cd8 /init/init.c
parent4185548984357df91311f30c8e43d95f33922576 (diff)
downloadbusybox-w32-6ca409e0e4c198fe3081346eebbae3f068fe605a.tar.gz
busybox-w32-6ca409e0e4c198fe3081346eebbae3f068fe605a.tar.bz2
busybox-w32-6ca409e0e4c198fe3081346eebbae3f068fe605a.zip
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
Diffstat (limited to 'init/init.c')
-rw-r--r--init/init.c6
1 files changed, 3 insertions, 3 deletions
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 {
106#endif 106#endif
107}; 107};
108 108
109static const char * const environment[] = { 109static const char *const environment[] = {
110 "HOME=/", 110 "HOME=/",
111 bb_PATH_root_path, 111 bb_PATH_root_path,
112 "SHELL=/bin/sh", 112 "SHELL=/bin/sh",
@@ -457,7 +457,7 @@ static pid_t run(const struct init_action *a)
457 457
458#if !defined(__UCLIBC__) || defined(__ARCH_HAS_MMU__) 458#if !defined(__UCLIBC__) || defined(__ARCH_HAS_MMU__)
459 if (a->action & ASKFIRST) { 459 if (a->action & ASKFIRST) {
460 static const char press_enter[] = 460 static const char press_enter[] ALIGN1 =
461#ifdef CUSTOMIZED_BANNER 461#ifdef CUSTOMIZED_BANNER
462#include CUSTOMIZED_BANNER 462#include CUSTOMIZED_BANNER
463#endif 463#endif
@@ -923,7 +923,7 @@ int init_main(int argc, char **argv)
923 chdir("/"); 923 chdir("/");
924 setsid(); 924 setsid();
925 { 925 {
926 const char * const *e; 926 const char *const *e;
927 /* Make sure environs is set to something sane */ 927 /* Make sure environs is set to something sane */
928 for (e = environment; *e; e++) 928 for (e = environment; *e; e++)
929 putenv((char *) *e); 929 putenv((char *) *e);