From 0a7c8ef6e220b5f8fff4f2cb0af630255a2a6a58 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Wed, 22 Feb 2006 17:01:00 +0000 Subject: Patch from Denis Vlasenko to constify things and fix a few typos. --- init/halt.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'init/halt.c') 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 @@ int halt_main(int argc, char *argv[]) { + static const int magic[] = {RB_HALT_SYSTEM, RB_POWER_OFF, RB_AUTOBOOT}; + static const int signals[] = {SIGUSR1, SIGUSR2, SIGTERM}; + char *delay = "hpr"; - int which, flags, magic[] = {RB_HALT_SYSTEM, RB_POWER_OFF, RB_AUTOBOOT}, - signals[] = {SIGUSR1, SIGUSR2, SIGTERM}, rc = 1; + int which, flags, rc = 1; /* Figure out which applet we're running */ for(which=0;delay[which]!=*bb_applet_name;which++); -- cgit v1.2.3