From d5cca73003febe187f5383bc80d3378966d060c0 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Mon, 22 Aug 2022 15:02:16 +0200 Subject: syscalls/fs_respond: make the *buf argument const --- src/kernel/syscalls.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/kernel/syscalls.c') 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); -- cgit v1.2.3