summaryrefslogtreecommitdiff
path: root/src/user/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/user/lib')
-rw-r--r--src/user/lib/fwik/main.cpp2
-rw-r--r--src/user/lib/libc/std/readline.c2
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--;