mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:47:36 +00:00
Kernel: Make kgettimeofday use AK::Time
This commit is contained in:
parent
05d5e3fad9
commit
336303bda4
11 changed files with 28 additions and 26 deletions
|
@ -135,7 +135,7 @@ KResultOr<int> Process::sys$adjtime(Userspace<const timeval*> user_delta, Usersp
|
|||
KResultOr<int> Process::sys$gettimeofday(Userspace<timeval*> user_tv)
|
||||
{
|
||||
REQUIRE_PROMISE(stdio);
|
||||
auto tv = kgettimeofday();
|
||||
auto tv = kgettimeofday().to_timeval();
|
||||
if (!copy_to_user(user_tv, &tv))
|
||||
return EFAULT;
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue