mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-23 17:52:26 -05:00
Kernel: Remove duplicative kgettimeofday(timeval&) function
This commit is contained in:
parent
c040e64b7d
commit
05d5e3fad9
Notes:
sideshowbarker
2024-07-18 21:47:37 +09:00
Author: https://github.com/BenWiederhake Commit: https://github.com/SerenityOS/serenity/commit/05d5e3fad90 Pull-request: https://github.com/SerenityOS/serenity/pull/5323 Reviewed-by: https://github.com/ADKaster Reviewed-by: https://github.com/awesomekling Reviewed-by: https://github.com/bgianfo
3 changed files with 1 additions and 8 deletions
|
@ -280,8 +280,7 @@ KResultOr<NonnullRefPtr<Inode>> TmpFSInode::create_child(const String& name, mod
|
|||
if (dev != 0)
|
||||
return ENOTSUP;
|
||||
|
||||
struct timeval now;
|
||||
kgettimeofday(now);
|
||||
struct timeval now = kgettimeofday();
|
||||
|
||||
InodeMetadata metadata;
|
||||
metadata.mode = mode;
|
||||
|
|
|
@ -386,11 +386,6 @@ timeval kgettimeofday()
|
|||
return TimeManagement::now().to_timeval();
|
||||
}
|
||||
|
||||
void kgettimeofday(timeval& tv)
|
||||
{
|
||||
tv = kgettimeofday();
|
||||
}
|
||||
|
||||
siginfo_t Process::wait_info()
|
||||
{
|
||||
siginfo_t siginfo {};
|
||||
|
|
|
@ -56,7 +56,6 @@ namespace Kernel {
|
|||
|
||||
// FIXME: Should use AK::Time internally
|
||||
timeval kgettimeofday();
|
||||
void kgettimeofday(timeval&);
|
||||
|
||||
#define ENUMERATE_PLEDGE_PROMISES \
|
||||
__ENUMERATE_PLEDGE_PROMISE(stdio) \
|
||||
|
|
Loading…
Add table
Reference in a new issue