Kernel: Remove various other uses of ssize_t

This commit is contained in:
Gunnar Beutner 2021-06-16 16:44:15 +02:00 committed by Andreas Kling
parent ca3cae81eb
commit bc3076f894
Notes: sideshowbarker 2024-07-18 12:10:14 +09:00
33 changed files with 123 additions and 129 deletions

View file

@ -41,7 +41,7 @@ KResultOr<size_t> StorageDevice::read(FileDescription&, u64 offset, UserOrKernel
{
unsigned index = offset / block_size();
u16 whole_blocks = len / block_size();
ssize_t remaining = len % block_size();
size_t remaining = len % block_size();
unsigned blocks_per_page = PAGE_SIZE / block_size();
@ -106,7 +106,7 @@ KResultOr<size_t> StorageDevice::write(FileDescription&, u64 offset, const UserO
{
unsigned index = offset / block_size();
u16 whole_blocks = len / block_size();
ssize_t remaining = len % block_size();
size_t remaining = len % block_size();
unsigned blocks_per_page = PAGE_SIZE / block_size();