From 1c102dbe35fa21d01dad42e4bad9edec11d6f43e Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Fri, 1 Mar 2019 22:20:24 +0000 Subject: [PATCH] syscalls: fix remaining char v uint8_t warnings The kernel now handles everything it can unsigned so that we don't give the compilers needless work to do on the processors like the 8080 and 6502 that suck at sign extending. --- Kernel/syscall_exec16.c | 2 +- Kernel/syscall_fs3.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Kernel/syscall_exec16.c b/Kernel/syscall_exec16.c index 876258ec..8db92b51 100644 --- a/Kernel/syscall_exec16.c +++ b/Kernel/syscall_exec16.c @@ -24,7 +24,7 @@ char *name; char *argv[]; char *envp[]; ********************************************/ -#define name (char *)udata.u_argn +#define name (uint8_t *)udata.u_argn #define argv (char **)udata.u_argn1 #define envp (char **)udata.u_argn2 diff --git a/Kernel/syscall_fs3.c b/Kernel/syscall_fs3.c index 59411cec..c9456b6a 100644 --- a/Kernel/syscall_fs3.c +++ b/Kernel/syscall_fs3.c @@ -213,7 +213,7 @@ arg_t _link(void) } i_lock(parent2); - if (!ch_link(parent2, "", lastname, ino)) { + if (!ch_link(parent2, (uint8_t *)"", lastname, ino)) { i_unlock_deref(parent2); goto nogoodl; } -- 2.34.1