diff options
author | Pankaj Raghav <p.raghav@samsung.com> | 2023-03-24 09:30:12 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-03-24 18:25:12 +0100 |
commit | f32fde6152c2ae6a71ef2afea6b8e3b370ac0a08 (patch) | |
tree | 927c64168d2b62e79932b9118f53f5ed8abe1e88 /Kernel/StdLib.h | |
parent | aeb8224ec8320fbad27df35aa7170d82977d32e0 (diff) | |
download | serenity-f32fde6152c2ae6a71ef2afea6b8e3b370ac0a08.zip |
Kernel/StdLib: Change try_copy_n_to_user to copy_n_to_user
Let us keep the naming consistent between copy_n_from_user() and
copy_n_to_user()
Diffstat (limited to 'Kernel/StdLib.h')
-rw-r--r-- | Kernel/StdLib.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/StdLib.h b/Kernel/StdLib.h index b420e0dc44..09bb646ffd 100644 --- a/Kernel/StdLib.h +++ b/Kernel/StdLib.h @@ -156,7 +156,7 @@ template<typename T> } template<typename T> -[[nodiscard]] inline ErrorOr<void> try_copy_n_to_user(Userspace<T*> dest, T const* src, size_t count) +[[nodiscard]] inline ErrorOr<void> copy_n_to_user(Userspace<T*> dest, T const* src, size_t count) { static_assert(IsTriviallyCopyable<T>); Checked<size_t> size = sizeof(T); |