summaryrefslogtreecommitdiff
path: root/Kernel/FileSystem/TmpFS.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-02-08 12:07:04 +0100
committerAndreas Kling <kling@serenityos.org>2020-02-08 12:07:04 +0100
commit7291370478c8ccb2ad94e1aa31f47e1f9cc7e300 (patch)
tree64610c534bd4ad04a1ca5a79fd76552f55c70ac6 /Kernel/FileSystem/TmpFS.cpp
parent42d41fdf947956af0dcbab46dbd316a38e7f6199 (diff)
downloadserenity-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.cpp2
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());