1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 06:57:46 +00:00

Kernel: Convert Process-related const member functions to static

Process::get_syscall_path_argument() and
ProcFSExposedComponent::modified_time() both are independent of this.
This commit is contained in:
Andrew Kaster 2021-10-31 16:47:20 -06:00 committed by Andreas Kling
parent bc29c7f04f
commit eb1181b898
3 changed files with 5 additions and 5 deletions

View file

@ -76,7 +76,7 @@ public:
virtual mode_t required_mode() const { return 0444; }
virtual UserID owner_user() const { return 0; }
virtual GroupID owner_group() const { return 0; }
time_t modified_time() const { return TimeManagement::now().to_timeval().tv_sec; }
static time_t modified_time() { return TimeManagement::now().to_timeval().tv_sec; }
virtual void prepare_for_deletion() { }
virtual ErrorOr<void> refresh_data(OpenFileDescription&) const