mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-05-27 13:38:28 +00:00
Kernel: Modifiy clock_settime timespec argument to const
The timeppec paramter is read only, and should be const.
This commit is contained in:
committed by
Andreas Kling
parent
b4d04fd8d1
commit
1be6145fdf
@@ -248,7 +248,7 @@ public:
|
||||
int sys$usleep(useconds_t usec);
|
||||
int sys$gettimeofday(Userspace<timeval*>);
|
||||
int sys$clock_gettime(clockid_t, Userspace<timespec*>);
|
||||
int sys$clock_settime(clockid_t, timespec*);
|
||||
int sys$clock_settime(clockid_t, const timespec*);
|
||||
int sys$clock_nanosleep(Userspace<const Syscall::SC_clock_nanosleep_params*>);
|
||||
int sys$gethostname(char*, ssize_t);
|
||||
int sys$sethostname(const char*, ssize_t);
|
||||
|
||||
@@ -54,7 +54,7 @@ int Process::sys$clock_gettime(clockid_t clock_id, Userspace<timespec*> user_ts)
|
||||
return 0;
|
||||
}
|
||||
|
||||
int Process::sys$clock_settime(clockid_t clock_id, timespec* user_ts)
|
||||
int Process::sys$clock_settime(clockid_t clock_id, const timespec* user_ts)
|
||||
{
|
||||
REQUIRE_PROMISE(settime);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user