summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--kernel/includes/syscalls.h2
-rw-r--r--kernel/syscalls/lseek.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/kernel/includes/syscalls.h b/kernel/includes/syscalls.h
index 2fabb2b..a7ebfe0 100644
--- a/kernel/includes/syscalls.h
+++ b/kernel/includes/syscalls.h
@@ -121,4 +121,4 @@ int syscall_socket(SYS_SOCKET_PARAMS *args);
int syscall_fstat(int fd, struct stat *buf);
u32 syscall_uptime(void);
int syscall_isatty(int fd);
-off_t syscall_lseek(int fd, off_t offset, int whence);
+int syscall_lseek(int fd, int offset, int whence);
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;