diff options
author | Andreas Kling <kling@serenityos.org> | 2021-07-18 01:13:34 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-07-18 01:53:04 +0200 |
commit | 9457d83986a9c4dce4a0e75a1d005aa7dd60f5cf (patch) | |
tree | c74f6434d1ed96276df14fb749ca5880033318d2 /Kernel/Syscalls/hostname.cpp | |
parent | ab50a1480f340932868cfbb788210fb37da9c18f (diff) | |
download | serenity-9457d83986a9c4dce4a0e75a1d005aa7dd60f5cf.zip |
Kernel: Rename Locker => MutexLocker
Diffstat (limited to 'Kernel/Syscalls/hostname.cpp')
-rw-r--r-- | Kernel/Syscalls/hostname.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/Syscalls/hostname.cpp b/Kernel/Syscalls/hostname.cpp index 5a51f6674b..128d57fe0d 100644 --- a/Kernel/Syscalls/hostname.cpp +++ b/Kernel/Syscalls/hostname.cpp @@ -16,7 +16,7 @@ KResultOr<FlatPtr> Process::sys$gethostname(Userspace<char*> buffer, size_t size REQUIRE_PROMISE(stdio); if (size > NumericLimits<ssize_t>::max()) return EINVAL; - Locker locker(*g_hostname_lock, Mutex::Mode::Shared); + MutexLocker locker(*g_hostname_lock, Mutex::Mode::Shared); if (size < (g_hostname->length() + 1)) return ENAMETOOLONG; if (!copy_to_user(buffer, g_hostname->characters(), g_hostname->length() + 1)) @@ -29,7 +29,7 @@ KResultOr<FlatPtr> Process::sys$sethostname(Userspace<const char*> hostname, siz REQUIRE_NO_PROMISES; if (!is_superuser()) return EPERM; - Locker locker(*g_hostname_lock, Mutex::Mode::Exclusive); + MutexLocker locker(*g_hostname_lock, Mutex::Mode::Exclusive); if (length > 64) return ENAMETOOLONG; auto copied_hostname = copy_string_from_user(hostname, length); |