diff --git a/Kernel/Process.h b/Kernel/Process.h index 12e4d373cba..30251418d4f 100644 --- a/Kernel/Process.h +++ b/Kernel/Process.h @@ -238,7 +238,7 @@ public: int sys$fchdir(int fd); int sys$sleep(unsigned seconds); int sys$usleep(useconds_t usec); - int sys$gettimeofday(timeval*); + int sys$gettimeofday(Userspace); int sys$clock_gettime(clockid_t, timespec*); int sys$clock_settime(clockid_t, timespec*); int sys$clock_nanosleep(const Syscall::SC_clock_nanosleep_params*); diff --git a/Kernel/Syscalls/clock.cpp b/Kernel/Syscalls/clock.cpp index 6ef5ced9310..7fc1be5f8aa 100644 --- a/Kernel/Syscalls/clock.cpp +++ b/Kernel/Syscalls/clock.cpp @@ -134,7 +134,7 @@ int Process::sys$clock_nanosleep(const Syscall::SC_clock_nanosleep_params* user_ } } -int Process::sys$gettimeofday(timeval* user_tv) +int Process::sys$gettimeofday(Userspace user_tv) { REQUIRE_PROMISE(stdio); if (!validate_write_typed(user_tv))