diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2006-06-03 00:56:16 +0400 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2006-06-03 00:56:16 +0400 |
commit | e15d7573a1263fb364d1678c3a46be47a8b5e5ea (patch) | |
tree | 09e7b482b38ac571a01e936fb91df16dd1eeef42 /init/halt.c | |
parent | ecae66ac16338d8cddb55e1782ebd8c5f670ff53 (diff) |
- move #include busybox.h to the very top so we pull in the config
and eventual platform specific includes in early.
Diffstat (limited to 'init/halt.c')
-rw-r--r-- | init/halt.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/init/halt.c b/init/halt.c index f3627f206..d1f561b63 100644 --- a/init/halt.c +++ b/init/halt.c @@ -7,10 +7,9 @@ * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. */ +#include "busybox.h" #include <signal.h> #include <sys/reboot.h> -#include "busybox.h" - #include <unistd.h> int halt_main(int argc, char *argv[]) @@ -40,7 +39,7 @@ RB_AUTOBOOT flags = bb_getopt_ulflags(argc, argv, "d:nf", &delay); if (flags&1) sleep(atoi(delay)); if (!(flags&2)) sync(); - + /* Perform action. */ if (ENABLE_INIT && !(flags & 4)) { if (ENABLE_FEATURE_INITRD) { |