From db8ad19dab9387aebfa5f4ec81619c384c75c591 Mon Sep 17 00:00:00 2001 From: "Jordan K. Hubbard" Date: Sun, 28 Aug 1994 10:00:49 +0000 Subject: [PATCH] What cretin named both a global and a function "reboot"? Global changed to Reboot. Submitted by: jkh --- sbin/init/init.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sbin/init/init.c b/sbin/init/init.c index 413fa5e0aeba..8bbe9c7d8dcb 100644 --- a/sbin/init/init.c +++ b/sbin/init/init.c @@ -115,7 +115,7 @@ state_func_t catatonia __P((void)); state_func_t death __P((void)); enum { AUTOBOOT, FASTBOOT } runcom_mode = AUTOBOOT; -int reboot = FALSE; +int Reboot = FALSE; void transition __P((state_t)); state_t requested_transition = runcom; @@ -562,7 +562,7 @@ single_user() if (getsecuritylevel() > 0) setsecuritylevel(0); - if (reboot) { + if (Reboot) { /* Instead of going single user, let's halt the machine */ sync(); alarm(2); @@ -1141,7 +1141,7 @@ transition_handler(sig) requested_transition = clean_ttys; break; case SIGINT: - reboot = TRUE; + Reboot = TRUE; case SIGTERM: requested_transition = death; break;