diff options
author | Alex AUVOLAT <alexis211@gmail.com> | 2012-11-25 21:06:40 +0100 |
---|---|---|
committer | Alex AUVOLAT <alexis211@gmail.com> | 2012-11-25 21:06:40 +0100 |
commit | 0dadfa903b7a780b4f88155a6eae7855890b797e (patch) | |
tree | 16ab5632128deaaad8643b7fcca11118fc0498e7 /src/user/lib | |
parent | e138ba093d5e1acbad0587aee38f9c09415d24ca (diff) | |
download | TCE-0dadfa903b7a780b4f88155a6eae7855890b797e.tar.gz TCE-0dadfa903b7a780b4f88155a6eae7855890b797e.zip |
Return to standard C.
Diffstat (limited to 'src/user/lib')
-rw-r--r-- | src/user/lib/fwik/main.cpp | 2 | ||||
-rw-r--r-- | src/user/lib/libc/std/readline.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/user/lib/fwik/main.cpp b/src/user/lib/fwik/main.cpp index e26cb46..e7c40c4 100644 --- a/src/user/lib/fwik/main.cpp +++ b/src/user/lib/fwik/main.cpp @@ -20,7 +20,7 @@ extern "C" int main(char **args) { String s_args[argc+1]; for (int i = 0; i < argc; i++) s_args[i] = args[i]; - Main(s_args); + return Main(s_args); } diff --git a/src/user/lib/libc/std/readline.c b/src/user/lib/libc/std/readline.c index 5cd9119..50e4f0d 100644 --- a/src/user/lib/libc/std/readline.c +++ b/src/user/lib/libc/std/readline.c @@ -149,7 +149,7 @@ char *freadline(FILE f, readline_history *h) { i = h->n - 1; while (h->str[i] != str) { if (i == 0) { - fprint(f, "READLINE FAIL"); + fprint(f, "readline: internal error"); return 0; } i--; |