1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 09:48:11 +00:00

Kernel: Tweak parameter name in Inode::read_entire()

This is a descriptION, not a descriptOR. :^)
This commit is contained in:
Andreas Kling 2020-12-23 20:36:14 +01:00
parent 1e21d49e86
commit 51713901b1

View file

@ -71,7 +71,7 @@ void Inode::sync()
}
}
KResultOr<NonnullOwnPtr<KBuffer>> Inode::read_entire(FileDescription* descriptor) const
KResultOr<NonnullOwnPtr<KBuffer>> Inode::read_entire(FileDescription* description) const
{
KBufferBuilder builder;
@ -80,7 +80,7 @@ KResultOr<NonnullOwnPtr<KBuffer>> Inode::read_entire(FileDescription* descriptor
off_t offset = 0;
for (;;) {
auto buf = UserOrKernelBuffer::for_kernel_buffer(buffer);
nread = read_bytes(offset, sizeof(buffer), buf, descriptor);
nread = read_bytes(offset, sizeof(buffer), buf, description);
if (nread < 0)
return KResult(nread);
ASSERT(nread <= (ssize_t)sizeof(buffer));