fbset: fix buglet where we were using wrong pointer
readahead: stop using stdio.h
*: style fixes
diff --git a/init/init.c b/init/init.c
index 409e8c4..4b543a4 100644
--- a/init/init.c
+++ b/init/init.c
@@ -369,7 +369,8 @@
if (a->action & (SYSINIT | WAIT | CTRLALTDEL | SHUTDOWN | RESTART)) {
/* Now fork off another process to just hang around */
- if ((pid = fork()) < 0) {
+ pid = fork();
+ if (pid) {
message(L_LOG | L_CONSOLE, "Can't fork");
_exit(1);
}
@@ -388,7 +389,8 @@
_exit(0);
/* Use a temporary process to steal the controlling tty. */
- if ((pid = fork()) < 0) {
+ pid = fork();
+ if (pid < 0) {
message(L_LOG | L_CONSOLE, "Can't fork");
_exit(1);
}