summaryrefslogtreecommitdiff
path: root/kernel/syscalls/lseek.c
diff options
context:
space:
mode:
authorAnton Kling <anton@kling.gg>2024-06-22 21:28:05 +0200
committerAnton Kling <anton@kling.gg>2024-06-22 21:28:43 +0200
commit5e10cdd5b4aa7486208dd14ebef4254ec5b5d03a (patch)
tree4cdf1b5287b425e62f354b3fb47ea527e53743f6 /kernel/syscalls/lseek.c
parent01b88a7bf9fb4c78bd632bfccb06f3d320a21fd5 (diff)
Kernel: Use correct types for syscall
The previous type was a 64 bit which causes problems for the syscall calling interface.
Diffstat (limited to 'kernel/syscalls/lseek.c')
-rw-r--r--kernel/syscalls/lseek.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/syscalls/lseek.c b/kernel/syscalls/lseek.c
index 3e38822..e85d4c1 100644
--- a/kernel/syscalls/lseek.c
+++ b/kernel/syscalls/lseek.c
@@ -7,7 +7,7 @@
#define SEEK_CUR 1
#define SEEK_END 2
-off_t syscall_lseek(int fd, off_t offset, int whence) {
+int syscall_lseek(int fd, int offset, int whence) {
vfs_fd_t *fd_ptr = get_vfs_fd(fd, NULL);
if (!fd_ptr) {
return -EBADF;