aboutsummaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2006-02-22 17:01:00 +0000
committerRob Landley <rob@landley.net>2006-02-22 17:01:00 +0000
commit0a7c8ef6e220b5f8fff4f2cb0af630255a2a6a58 (patch)
treef32eb89325299a3abade721ffe149b0e516747c1 /init
parentfb16d5c6aa8aef30d313356b5a83ef0a60114c9a (diff)
downloadbusybox-w32-0a7c8ef6e220b5f8fff4f2cb0af630255a2a6a58.tar.gz
busybox-w32-0a7c8ef6e220b5f8fff4f2cb0af630255a2a6a58.tar.bz2
busybox-w32-0a7c8ef6e220b5f8fff4f2cb0af630255a2a6a58.zip
Patch from Denis Vlasenko to constify things and fix a few typos.
Diffstat (limited to 'init')
-rw-r--r--init/halt.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/init/halt.c b/init/halt.c
index 34479742e..38ca38222 100644
--- a/init/halt.c
+++ b/init/halt.c
@@ -15,9 +15,11 @@
15 15
16int halt_main(int argc, char *argv[]) 16int halt_main(int argc, char *argv[])
17{ 17{
18 static const int magic[] = {RB_HALT_SYSTEM, RB_POWER_OFF, RB_AUTOBOOT};
19 static const int signals[] = {SIGUSR1, SIGUSR2, SIGTERM};
20
18 char *delay = "hpr"; 21 char *delay = "hpr";
19 int which, flags, magic[] = {RB_HALT_SYSTEM, RB_POWER_OFF, RB_AUTOBOOT}, 22 int which, flags, rc = 1;
20 signals[] = {SIGUSR1, SIGUSR2, SIGTERM}, rc = 1;
21 23
22 /* Figure out which applet we're running */ 24 /* Figure out which applet we're running */
23 for(which=0;delay[which]!=*bb_applet_name;which++); 25 for(which=0;delay[which]!=*bb_applet_name;which++);