Style fixes

This commit is contained in:
Roy Marples 2007-04-20 19:03:56 +00:00
parent 35ee67f446
commit 3979a1712d
2 changed files with 12 additions and 12 deletions

View File

@ -398,7 +398,7 @@ static void sulogin (bool cont)
newenv = rc_filter_env ();
#ifdef __linux__
execle ("/sbin/sulogin", "/sbin/sulogin",
getenv ("CONSOLE"), (char *) NULL, newenv);
getenv ("CONSOLE"), (char *) NULL, newenv);
eerror ("%s: unable to exec `/sbin/sulogin': %s", applet,
strerror (errno));
#else
@ -413,7 +413,7 @@ static void sulogin (bool cont)
#ifdef __linux
newenv = rc_filter_env ();
execle ("/sbin/sulogin", "/sbin/sulogin",
getenv ("CONSOLE"), (char *) NULL, newenv);
getenv ("CONSOLE"), (char *) NULL, newenv);
eerrorx ("%s: unable to exec `/sbin/sulogin': %s", applet, strerror (errno));
#else
exit (EXIT_SUCCESS);
@ -554,9 +554,9 @@ static void handle_signal (int sig)
run = getenv ("RUNLEVEL");
prev = getenv ("PREVLEVEL");
if ((prev && strcmp (prev, "S") == 0) ||
(run &&
(strcmp (run, "S") == 0 ||
strcmp (run, "1") == 0)))
(run &&
(strcmp (run, "S") == 0 ||
strcmp (run, "1") == 0)))
single_user ();
exit (EXIT_FAILURE);

View File

@ -280,13 +280,13 @@ static bool svc_exec (const char *service, const char *arg1, const char *arg2)
execl (RC_SVCDIR "runscript.sh", service, service, arg1, arg2,
(char *) NULL);
eerror ("%s: exec `" RC_SVCDIR "runscript.sh': %s",
service, strerror (errno));
service, strerror (errno));
_exit (EXIT_FAILURE);
} else {
execl (RC_LIBDIR "sh/runscript.sh", service, service, arg1, arg2,
(char *) NULL);
eerror ("%s: exec `" RC_LIBDIR "sh/runscript.sh': %s",
service, strerror (errno));
service, strerror (errno));
_exit (EXIT_FAILURE);
}
}