summaryrefslogtreecommitdiff
path: root/src/init/syscalls.c
diff options
context:
space:
mode:
authordzwdz2022-04-12 19:44:38 +0200
committerdzwdz2022-04-12 19:44:38 +0200
commit008ac1574e127162f095a75f63c4c1be5d03b6d0 (patch)
tree23c7d249ec1e7b3ca85562a0e4a62a9221fb298c /src/init/syscalls.c
parent75ec633805db108bfddb6454ff7f8d812475feaf (diff)
kernel: make all sizes unsigned, sort out the sign mess
Diffstat (limited to 'src/init/syscalls.c')
-rw-r--r--src/init/syscalls.c8
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) {