mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-19 08:51:57 +00:00
Fix all current build warnings in LibC.
This commit is contained in:
parent
47b7eeda44
commit
e9cdb6bb9b
Notes:
sideshowbarker
2024-07-19 18:31:22 +09:00
Author: https://github.com/awesomekling
Commit: e9cdb6bb9b
9 changed files with 19 additions and 17 deletions
|
@ -10,6 +10,8 @@ time_t time(time_t* tloc)
|
|||
struct timezone tz;
|
||||
if (gettimeofday(&tv, &tz) < 0)
|
||||
return (time_t)-1;
|
||||
if (tloc)
|
||||
*tloc = tv.tv_sec;
|
||||
return tv.tv_sec;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue