aboutsummaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2009-10-23 14:24:44 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2009-10-23 14:24:44 +0200
commit9d57a8073af171ae76298f746677fc19a14545a2 (patch)
tree643b2b7725bc314d7a8f371f6f2c3ee188651950 /init
parent11c12c47201ee47a4d15044699915f23722e71d3 (diff)
downloadbusybox-w32-9d57a8073af171ae76298f746677fc19a14545a2.tar.gz
busybox-w32-9d57a8073af171ae76298f746677fc19a14545a2.tar.bz2
busybox-w32-9d57a8073af171ae76298f746677fc19a14545a2.zip
libbb.h: tidy it up a bit. no code changes (verified)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'init')
-rw-r--r--init/halt.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/init/halt.c b/init/halt.c
index c88c333e7..16906dfe0 100644
--- a/init/halt.c
+++ b/init/halt.c
@@ -40,10 +40,15 @@ static void write_wtmp(void)
40#define RB_HALT_SYSTEM RB_HALT 40#define RB_HALT_SYSTEM RB_HALT
41#endif 41#endif
42 42
43#ifndef RB_POWERDOWN
44/* Stop system and switch power off if possible. */
45# define RB_POWERDOWN 0x4321fedc
46#endif
43#ifndef RB_POWER_OFF 47#ifndef RB_POWER_OFF
44#define RB_POWER_OFF RB_POWERDOWN 48# define RB_POWER_OFF RB_POWERDOWN
45#endif 49#endif
46 50
51
47int halt_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 52int halt_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
48int halt_main(int argc UNUSED_PARAM, char **argv) 53int halt_main(int argc UNUSED_PARAM, char **argv)
49{ 54{