change errno to error to avoid confusion

This commit is contained in:
2026-10-06 00:20:35 +02:00
parent 57b1d338ac
commit 685f911431
6 changed files with 12 additions and 11 deletions
+2 -1
View File
@@ -8,6 +8,7 @@
#include <bits/sched.h>
// Declare all syscalls.
#define SYSCALL_DECLARE(number, name, num_args) extern void sys_##name(...);
#include <zinnia/syscall_list.inc>
#undef SYSCALL_DECLARE
@@ -43,5 +44,5 @@ void syscall_dispatch(struct arch_context* ctx) {
}
ctx->ARCH_CTX_RET0 = ret.value;
ctx->ARCH_CTX_RET1 = ret.errno;
ctx->ARCH_CTX_RET1 = ret.error;
}