summaryrefslogtreecommitdiff
path: root/Kernel/FileSystem/DiskBackedFileSystem.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-06-22 16:22:34 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-06-22 16:22:34 +0200
commit46a06c23e30668d90cb5efb44eab05bb4577d08d (patch)
tree44749101e59434822b7f7f8f7e51fd184206d3d5 /Kernel/FileSystem/DiskBackedFileSystem.cpp
parent17acc1e0a862ed03dd1613851d4f9caec5297a50 (diff)
downloadserenity-46a06c23e30668d90cb5efb44eab05bb4577d08d.zip
Kernel: Fix all compiler warnings.
Diffstat (limited to 'Kernel/FileSystem/DiskBackedFileSystem.cpp')
-rw-r--r--Kernel/FileSystem/DiskBackedFileSystem.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Kernel/FileSystem/DiskBackedFileSystem.cpp b/Kernel/FileSystem/DiskBackedFileSystem.cpp
index afb4a8cc5f..d8b66803a1 100644
--- a/Kernel/FileSystem/DiskBackedFileSystem.cpp
+++ b/Kernel/FileSystem/DiskBackedFileSystem.cpp
@@ -139,8 +139,9 @@ ByteBuffer DiskBackedFS::read_blocks(unsigned index, unsigned count) const
return blocks;
}
-void DiskBackedFS::set_block_size(unsigned block_size)
+void DiskBackedFS::set_block_size(int block_size)
{
+ ASSERT(block_size > 0);
if (block_size == m_block_size)
return;
m_block_size = block_size;