diff options
author | dzwdz | 2022-03-27 17:04:11 +0200 |
---|---|---|
committer | dzwdz | 2022-03-27 17:04:11 +0200 |
commit | 5915d78a9a1b5123198b671ded6db40c69c611c7 (patch) | |
tree | 27cddb2804c402d4fb1b47e9964a9db8e6ed9de9 /src/kernel/syscalls.c | |
parent | b79e9c8f639cc273b38e34d877223ff984f8fa0c (diff) |
shared/syscalls: change some pointer types to void*
Diffstat (limited to 'src/kernel/syscalls.c')
-rw-r--r-- | src/kernel/syscalls.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/kernel/syscalls.c b/src/kernel/syscalls.c index 9948506..f41aabf 100644 --- a/src/kernel/syscalls.c +++ b/src/kernel/syscalls.c @@ -125,7 +125,7 @@ fail: return -1; } -int _syscall_read(handle_t handle_num, char __user *buf, int len, int offset) { +int _syscall_read(handle_t handle_num, void __user *buf, int len, int offset) { struct handle *handle = &process_current->handles[handle_num]; if (handle_num < 0 || handle_num >= HANDLE_MAX) return -1; if (handle->type != HANDLE_FILE) return -1; @@ -142,7 +142,7 @@ int _syscall_read(handle_t handle_num, char __user *buf, int len, int offset) { }); } -int _syscall_write(handle_t handle_num, const char __user *buf, int len, int offset) { +int _syscall_write(handle_t handle_num, const void __user *buf, int len, int offset) { struct handle *handle = &process_current->handles[handle_num]; if (handle_num < 0 || handle_num >= HANDLE_MAX) return -1; if (handle->type != HANDLE_FILE) return -1; |