summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/init/syscalls.c2
-rw-r--r--src/kernel/syscalls.c2
-rw-r--r--src/kernel/syscalls.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/init/syscalls.c b/src/init/syscalls.c
index fb59bd3..0be7917 100644
--- a/src/init/syscalls.c
+++ b/src/init/syscalls.c
@@ -16,7 +16,7 @@ int _syscall_await(char *buf, int len) {
return _syscall(_SYSCALL_AWAIT, (int)buf, (int)len, 0);
}
-fd_t _syscall_fs_open(const char *path, size_t len) {
+fd_t _syscall_fs_open(const char *path, int len) {
return _syscall(_SYSCALL_FS_OPEN, (int)path, len, 0);
}
diff --git a/src/kernel/syscalls.c b/src/kernel/syscalls.c
index 0a88c98..ccf0a52 100644
--- a/src/kernel/syscalls.c
+++ b/src/kernel/syscalls.c
@@ -65,7 +65,7 @@ int _syscall_fork() {
return 1;
}
-fd_t _syscall_fs_open(const char *path, size_t len) {
+fd_t _syscall_fs_open(const char *path, int len) {
struct virt_iter iter;
struct vfs_mount *mount = process_current->mount;
static char buffer[PATH_MAX]; // holds the path
diff --git a/src/kernel/syscalls.h b/src/kernel/syscalls.h
index c8dca05..f3e8dc0 100644
--- a/src/kernel/syscalls.h
+++ b/src/kernel/syscalls.h
@@ -33,7 +33,7 @@ int _syscall_await(char *buf, int len);
*/
int _syscall_fork();
-fd_t _syscall_fs_open(const char *path, size_t len);
+fd_t _syscall_fs_open(const char *path, int len);
int _syscall_mount(const char *path, int len, fd_t fd);
/** Prints a message to the debug console.