diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/cmd/tests/kernel/path.c | 3 | ||||
-rw-r--r-- | src/libc/compat.c | 2 | ||||
-rw-r--r-- | src/libc/include/camellia/compat.h | 2 |
3 files changed, 3 insertions, 4 deletions
diff --git a/src/cmd/tests/kernel/path.c b/src/cmd/tests/kernel/path.c index 215d36b..8ad1ce3 100644 --- a/src/cmd/tests/kernel/path.c +++ b/src/cmd/tests/kernel/path.c @@ -69,8 +69,7 @@ static void mount_resolve_drv(const char *path) { struct ufs_request res; char buf[512]; while (!c0_fs_wait(buf, sizeof(buf), &res)) { - // TODO does the first argument of c0_fs_respond need to be non-const? - c0_fs_respond((void*)path, strlen(path), 0); + c0_fs_respond(path, strlen(path), 0); } exit(1); } diff --git a/src/libc/compat.c b/src/libc/compat.c index 459a0aa..f917d47 100644 --- a/src/libc/compat.c +++ b/src/libc/compat.c @@ -11,7 +11,7 @@ long c0_fs_wait(char *buf, long len, struct ufs_request *res) { h = _sys_fs_wait(buf, len, res); return h >= 0 ? 0 : -1; } -long c0_fs_respond(void *buf, long ret, int flags) { +long c0_fs_respond(const void *buf, long ret, int flags) { ret = _sys_fs_respond(h, buf, ret, flags); h = -1; return ret; diff --git a/src/libc/include/camellia/compat.h b/src/libc/include/camellia/compat.h index 3b0ba4a..8fbc16f 100644 --- a/src/libc/include/camellia/compat.h +++ b/src/libc/include/camellia/compat.h @@ -3,7 +3,7 @@ /* c0 - fs_wait returning a handle */ long c0_fs_wait(char *buf, long len, struct ufs_request *res); -long c0_fs_respond(void *buf, long ret, int flags); +long c0_fs_respond(const void *buf, long ret, int flags); long _sys_await(void); void _sys_filicide(void); |