summaryrefslogtreecommitdiff
path: root/Kernel
diff options
context:
space:
mode:
authorBrian Gianforcaro <b.gianfo@gmail.com>2020-08-04 22:18:51 -0700
committerAndreas Kling <kling@serenityos.org>2020-08-05 09:36:53 +0200
commitbaa070afb891d790c587fe7ae7516789b1655bb7 (patch)
tree96a8dd35f9d1c1cdd08eccf18f06f25499b30a8b /Kernel
parent1eeaed31c2fa533d38ecfb9ac18e7233eb34a4c0 (diff)
downloadserenity-baa070afb891d790c587fe7ae7516789b1655bb7.zip
Kernel: Use Userspace<T> for the gettimeofday syscall
Diffstat (limited to 'Kernel')
-rw-r--r--Kernel/Process.h2
-rw-r--r--Kernel/Syscalls/clock.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/Process.h b/Kernel/Process.h
index 12e4d373cb..30251418d4 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<timeval*>);
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 6ef5ced931..7fc1be5f8a 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<timeval*> user_tv)
{
REQUIRE_PROMISE(stdio);
if (!validate_write_typed(user_tv))