summaryrefslogtreecommitdiff
path: root/src/user/init
diff options
context:
space:
mode:
Diffstat (limited to 'src/user/init')
-rw-r--r--src/user/init/main.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/user/init/main.c b/src/user/init/main.c
index 7d4ea0e..54dd4b6 100644
--- a/src/user/init/main.c
+++ b/src/user/init/main.c
@@ -5,20 +5,20 @@
int main(char** args) {
int i;
- FILE term = open("/.ui/klog", 0);
+ term = open("/.ui/klog", 0);
if (term <= 0) return -1;
- fprint(term, "(init) Trivial/Computing Environment says hello. Press super to go home.\n");
+ print("(init) Trivial/Computing Environment says hello. Press super to go home.\n");
for (i = 0; args[i] != 0; i++) {
if (i == 0) continue;
- fprintf(term, "(init) Spawning %s...\n", args[i]);
+ printf("(init) Spawning %s...\n", args[i]);
int pid = run(args[i], 0);
if (pid < 0) {
- fprint(term, "(init) Error. Sorry.\n");
+ print("(init) Error. Sorry.\n");
} else {
waitpid(pid);
}
}
- fprint(term, "(init) Goodbye.\n");
+ print("(init) Goodbye.\n");
}