summaryrefslogtreecommitdiff
path: root/init/halt.c
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2006-06-02 20:56:16 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2006-06-02 20:56:16 +0000
commite15d7573a1263fb364d1678c3a46be47a8b5e5ea (patch)
tree09e7b482b38ac571a01e936fb91df16dd1eeef42 /init/halt.c
parentecae66ac16338d8cddb55e1782ebd8c5f670ff53 (diff)
downloadbusybox-w32-e15d7573a1263fb364d1678c3a46be47a8b5e5ea.tar.gz
busybox-w32-e15d7573a1263fb364d1678c3a46be47a8b5e5ea.tar.bz2
busybox-w32-e15d7573a1263fb364d1678c3a46be47a8b5e5ea.zip
- 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.c5
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 @@
7 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 7 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
8 */ 8 */
9 9
10#include "busybox.h"
10#include <signal.h> 11#include <signal.h>
11#include <sys/reboot.h> 12#include <sys/reboot.h>
12#include "busybox.h"
13
14#include <unistd.h> 13#include <unistd.h>
15 14
16int halt_main(int argc, char *argv[]) 15int halt_main(int argc, char *argv[])
@@ -40,7 +39,7 @@ RB_AUTOBOOT
40 flags = bb_getopt_ulflags(argc, argv, "d:nf", &delay); 39 flags = bb_getopt_ulflags(argc, argv, "d:nf", &delay);
41 if (flags&1) sleep(atoi(delay)); 40 if (flags&1) sleep(atoi(delay));
42 if (!(flags&2)) sync(); 41 if (!(flags&2)) sync();
43 42
44 /* Perform action. */ 43 /* Perform action. */
45 if (ENABLE_INIT && !(flags & 4)) { 44 if (ENABLE_INIT && !(flags & 4)) {
46 if (ENABLE_FEATURE_INITRD) { 45 if (ENABLE_FEATURE_INITRD) {