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:
parent
1e21d49e86
commit
51713901b1
1 changed files with 2 additions and 2 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue