diff options
author | dzwdz | 2022-08-22 15:02:16 +0200 |
---|---|---|
committer | dzwdz | 2022-08-22 15:02:16 +0200 |
commit | d5cca73003febe187f5383bc80d3378966d060c0 (patch) | |
tree | 5677121b75570711272b2417104a921794825313 /src/kernel/syscalls.c | |
parent | 06beffa4f8f350aad6f6167abb7bebeecd0166ff (diff) |
syscalls/fs_respond: make the *buf argument const
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 33f56cd..d7ac5b2 100644 --- a/src/kernel/syscalls.c +++ b/src/kernel/syscalls.c @@ -276,7 +276,7 @@ handle_t _syscall_fs_wait(char __user *buf, long max_len, struct fs_wait_respons return -1; // dummy } -long _syscall_fs_respond(handle_t hid, void __user *buf, long ret, int flags) { +long _syscall_fs_respond(handle_t hid, const void __user *buf, long ret, int flags) { struct handle *h = process_handle_get(process_current, hid); if (!h || h->type != HANDLE_FS_REQ) SYSCALL_RETURN(-EBADF); struct vfs_request *req = h->req; @@ -294,7 +294,7 @@ long _syscall_fs_respond(handle_t hid, void __user *buf, long ret, int flags) { panic_unimplemented(); /* write failures are ignored */ } - vfsreq_finish(req, buf, ret, flags, process_current); + vfsreq_finish(req, (void __user *)buf, ret, flags, process_current); } h->req = NULL; process_handle_close(process_current, hid); |