diff options
author | vda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-12-26 10:42:51 +0000 |
---|---|---|
committer | vda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-12-26 10:42:51 +0000 |
commit | 52f326a239527e7242321661d2ba06b50daa3c43 (patch) | |
tree | af74820b70fa27929fe218c95822c20651b60637 /init | |
parent | da5e86c349488f3ea31718b149ce9f0d1493b64b (diff) | |
download | busybox-w32-52f326a239527e7242321661d2ba06b50daa3c43.tar.gz busybox-w32-52f326a239527e7242321661d2ba06b50daa3c43.tar.bz2 busybox-w32-52f326a239527e7242321661d2ba06b50daa3c43.zip |
style fixes
last xcalloc replaced by xzalloc
git-svn-id: svn://busybox.net/trunk/busybox@17081 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'init')
-rw-r--r-- | init/init.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/init/init.c b/init/init.c index bc53feeae..2e8ca3ca8 100644 --- a/init/init.c +++ b/init/init.c | |||
@@ -173,7 +173,7 @@ static void loop_forever(void) | |||
173 | #if ENABLE_DEBUG_INIT | 173 | #if ENABLE_DEBUG_INIT |
174 | #define messageD message | 174 | #define messageD message |
175 | #else | 175 | #else |
176 | #define messageD(...) do {;} while(0); | 176 | #define messageD(...) do {} while (0) |
177 | #endif | 177 | #endif |
178 | static void message(int device, const char *fmt, ...) | 178 | static void message(int device, const char *fmt, ...) |
179 | __attribute__ ((format(printf, 2, 3))); | 179 | __attribute__ ((format(printf, 2, 3))); |
@@ -534,7 +534,7 @@ static pid_t run(const struct init_action *a) | |||
534 | "(pid %d, terminal %s)\n", | 534 | "(pid %d, terminal %s)\n", |
535 | cmdpath, getpid(), a->terminal); | 535 | cmdpath, getpid(), a->terminal); |
536 | full_write(1, press_enter, sizeof(press_enter) - 1); | 536 | full_write(1, press_enter, sizeof(press_enter) - 1); |
537 | while(read(0, &c, 1) == 1 && c != '\n') | 537 | while (read(0, &c, 1) == 1 && c != '\n') |
538 | ; | 538 | ; |
539 | } | 539 | } |
540 | #endif | 540 | #endif |
@@ -1021,7 +1021,7 @@ int init_main(int argc, char **argv) | |||
1021 | { | 1021 | { |
1022 | const char * const *e; | 1022 | const char * const *e; |
1023 | /* Make sure environs is set to something sane */ | 1023 | /* Make sure environs is set to something sane */ |
1024 | for(e = environment; *e; e++) | 1024 | for (e = environment; *e; e++) |
1025 | putenv((char *) *e); | 1025 | putenv((char *) *e); |
1026 | } | 1026 | } |
1027 | 1027 | ||