1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-18 21:35:06 +00:00

Kernel: Make File::truncate() take a u64

No point in taking a signed type here. We validate at the syscall layer
and then pass around a u64 from then on.
This commit is contained in:
Andreas Kling 2020-02-08 12:07:04 +01:00
parent 42d41fdf94
commit 7291370478
11 changed files with 12 additions and 12 deletions

View file

@ -327,7 +327,7 @@ KResult TmpFSInode::remove_child(const StringView& name)
return KSuccess;
}
KResult TmpFSInode::truncate(off_t size)
KResult TmpFSInode::truncate(u64 size)
{
LOCKER(m_lock);
ASSERT(!is_directory());