diff options
author | Alex AUVOLAT <alexis211@gmail.com> | 2012-05-19 14:07:01 +0200 |
---|---|---|
committer | Alex AUVOLAT <alexis211@gmail.com> | 2012-05-19 14:07:01 +0200 |
commit | 0d2f7645c3fb45d83497faf2a4b6fff8c3f175d1 (patch) | |
tree | a9038fce4cf81556fbdd5589caee8f4e9bfc5185 /src/user/app/init/main.cpp | |
parent | 499ca6c243b05da176a2d4bd9a2317f0b28afc7f (diff) | |
download | TCE-0d2f7645c3fb45d83497faf2a4b6fff8c3f175d1.tar.gz TCE-0d2f7645c3fb45d83497faf2a4b6fff8c3f175d1.zip |
Added string class for FWIK.
Diffstat (limited to 'src/user/app/init/main.cpp')
-rw-r--r-- | src/user/app/init/main.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/user/app/init/main.cpp b/src/user/app/init/main.cpp index 4bb12da..759d804 100644 --- a/src/user/app/init/main.cpp +++ b/src/user/app/init/main.cpp @@ -1,16 +1,17 @@ #include <tce/syscall.h> #include <IO/IOStream.h> +#include <String.h> -int Main(char** args) { +int Main(String *args) { FILE home_term = libc::open("/.ui/home", 0); if (home_term < 0) return -1; stdio << "(init) Trivial/Computing Environment says hello. Press super to go home.\n"; - for (int i = 0; args[i] != 0; i++) { + for (int i = 0; args[i]; i++) { if (i == 0) continue; - stdio.printf("(init) Spawning %s...\n", args[i]); - int pid = libc::run(args[i], 0, home_term); + stdio.printf("(init) Spawning %s...\n", args[i].c_str()); + int pid = libc::run(args[i].c_str(), 0, home_term); if (pid < 0) { stdio << "(init) Error. Sorry.\n"; } else { |