Patch from Denis Vlasenko to constify things and fix a few typos.

This commit is contained in:
Rob Landley
2006-02-22 17:01:00 +00:00
parent fb16d5c6aa
commit 0a7c8ef6e2
9 changed files with 74 additions and 54 deletions

View File

@ -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++);