syscalls: fix remaining char v uint8_t warnings
authorAlan Cox <alan@linux.intel.com>
Fri, 1 Mar 2019 22:20:24 +0000 (22:20 +0000)
committerAlan Cox <alan@linux.intel.com>
Fri, 1 Mar 2019 22:20:24 +0000 (22:20 +0000)
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
Kernel/syscall_fs3.c

index 876258e..8db92b5 100644 (file)
@@ -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
 
index 59411ce..c9456b6 100644 (file)
@@ -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;
        }