From 4525f775fe58718576ab424eff5df5b3ae92c442 Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Fri, 7 Jul 1995 02:47:31 +0000 Subject: Include . (reboot_mach): Insert extra parens around assignment inside while test. (launch_core_servers): Remove assignment from inside if test. --- init/init.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/init/init.c b/init/init.c index b5ce5a30..e2eb3b9b 100644 --- a/init/init.c +++ b/init/init.c @@ -36,6 +36,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ #include #include #include +#include #include "startup_reply_U.h" #include "startup_S.h" @@ -129,7 +130,7 @@ reboot_mach (int flags) { printf ("init: %sing Mach (flags %#x)...\n", BOOT (flags), flags); fflush (stdout); - while (errno = host_reboot (host_priv, flags)) + while ((errno = host_reboot (host_priv, flags))) perror ("host_reboot"); for (;;); } @@ -551,8 +552,8 @@ launch_core_servers (void) mach_port_deallocate (mach_task_self (), old); /* Give the bootstrap FS its proc and auth ports. */ - if (errno = fsys_init (bootport, fsproc, MACH_MSG_TYPE_MOVE_SEND, - authserver)) + errno = fsys_init (bootport, fsproc, MACH_MSG_TYPE_MOVE_SEND, authserver); + if (errno) perror ("fsys_init"); /* Not necessarily fatal. */ } -- cgit v1.2.3