diff --git a/kernel/calls.h b/kernel/calls.h index 3464c97697..314f5b1121 100644 --- a/kernel/calls.h +++ b/kernel/calls.h @@ -190,7 +190,7 @@ dword_t sys_getcwd(addr_t buf_addr, dword_t size); dword_t sys_chdir(addr_t path_addr); dword_t sys_chroot(addr_t path_addr); dword_t sys_fchdir(fd_t f); -dword_t sys_personality(dword_t pers); +int_t sys_personality(dword_t pers); int task_set_thread_area(struct task *task, addr_t u_info); int sys_set_thread_area(addr_t u_info); int sys_set_tid_address(addr_t blahblahblah); diff --git a/kernel/getset.c b/kernel/getset.c index ecc20904f3..94d3575547 100644 --- a/kernel/getset.c +++ b/kernel/getset.c @@ -172,7 +172,7 @@ int_t sys_capset(addr_t header_addr, addr_t data_addr) { } // minimal version according to Linux sys/personality.h -dword_t sys_personality(dword_t pers) { +int_t sys_personality(dword_t pers) { if (pers == 0xffffffff) // get personality, return default (Linux) return 0x00000000; if (pers == 0x00000000) // set personality to Linux