mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-29 22:24:08 +03:00
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()
This commit is contained in:
parent
aeb8224ec8
commit
f32fde6152
Notes:
sideshowbarker
2024-07-16 22:26:19 +09:00
Author: https://github.com/Panky-codes Commit: https://github.com/SerenityOS/serenity/commit/f32fde6152 Pull-request: https://github.com/SerenityOS/serenity/pull/18024 Reviewed-by: https://github.com/awesomekling
@ -156,7 +156,7 @@ template<typename T>
|
|||||||
}
|
}
|
||||||
|
|
||||||
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>);
|
static_assert(IsTriviallyCopyable<T>);
|
||||||
Checked<size_t> size = sizeof(T);
|
Checked<size_t> size = sizeof(T);
|
||||||
|
Loading…
Reference in New Issue
Block a user