diff options
author | Andreas Kling <kling@serenityos.org> | 2020-02-08 12:07:04 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-02-08 12:07:04 +0100 |
commit | 7291370478c8ccb2ad94e1aa31f47e1f9cc7e300 (patch) | |
tree | 64610c534bd4ad04a1ca5a79fd76552f55c70ac6 /Kernel/FileSystem/TmpFS.cpp | |
parent | 42d41fdf947956af0dcbab46dbd316a38e7f6199 (diff) | |
download | serenity-7291370478c8ccb2ad94e1aa31f47e1f9cc7e300.zip |
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.
Diffstat (limited to 'Kernel/FileSystem/TmpFS.cpp')
-rw-r--r-- | Kernel/FileSystem/TmpFS.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/FileSystem/TmpFS.cpp b/Kernel/FileSystem/TmpFS.cpp index 64a84c0820..6e1575ad6a 100644 --- a/Kernel/FileSystem/TmpFS.cpp +++ b/Kernel/FileSystem/TmpFS.cpp @@ -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()); |