diff options
author | dzwdz | 2022-04-12 19:44:38 +0200 |
---|---|---|
committer | dzwdz | 2022-04-12 19:44:38 +0200 |
commit | 008ac1574e127162f095a75f63c4c1be5d03b6d0 (patch) | |
tree | 23c7d249ec1e7b3ca85562a0e4a62a9221fb298c /src/init | |
parent | 75ec633805db108bfddb6454ff7f8d812475feaf (diff) |
kernel: make all sizes unsigned, sort out the sign mess
Diffstat (limited to 'src/init')
-rw-r--r-- | src/init/syscalls.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/init/syscalls.c b/src/init/syscalls.c index 99f68f3..15acd1c 100644 --- a/src/init/syscalls.c +++ b/src/init/syscalls.c @@ -22,12 +22,12 @@ int _syscall_mount(handle_t handle, const char __user *path, int len) { return _syscall(_SYSCALL_MOUNT, handle, (int)path, len, 0); } -int _syscall_read(handle_t handle, void __user *buf, int len, int offset) { - return _syscall(_SYSCALL_READ, handle, (int)buf, len, offset); +int _syscall_read(handle_t handle, void __user *buf, size_t len, int offset) { + return _syscall(_SYSCALL_READ, handle, (int)buf, (int)len, offset); } -int _syscall_write(handle_t handle, const void __user *buf, int len, int offset) { - return _syscall(_SYSCALL_WRITE, handle, (int)buf, len, offset); +int _syscall_write(handle_t handle, const void __user *buf, size_t len, int offset) { + return _syscall(_SYSCALL_WRITE, handle, (int)buf, (int)len, offset); } int _syscall_close(handle_t handle) { |