summaryrefslogtreecommitdiff
path: root/Kernel/Devices/FullDevice.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-04-03 13:18:42 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-04-03 13:18:42 +0200
commit58c4d41c5fd18549e4cd799d0094cedbd2c30ea3 (patch)
tree04481e9a33372b890f5c3681ef9be311f31ffc15 /Kernel/Devices/FullDevice.cpp
parenta095a90b51190386b93828153e2a533725cc2ab7 (diff)
downloadserenity-58c4d41c5fd18549e4cd799d0094cedbd2c30ea3.zip
Kernel: Remove Limits.h
Diffstat (limited to 'Kernel/Devices/FullDevice.cpp')
-rw-r--r--Kernel/Devices/FullDevice.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/Kernel/Devices/FullDevice.cpp b/Kernel/Devices/FullDevice.cpp
index 6d7acfadc7..2b9ad32b4a 100644
--- a/Kernel/Devices/FullDevice.cpp
+++ b/Kernel/Devices/FullDevice.cpp
@@ -1,5 +1,4 @@
#include "FullDevice.h"
-#include "Limits.h"
#include <LibC/errno_numbers.h>
#include <AK/StdLibExtras.h>
#include <AK/kstdio.h>
@@ -20,7 +19,7 @@ bool FullDevice::can_read(Process&) const
ssize_t FullDevice::read(Process&, byte* buffer, ssize_t size)
{
- ssize_t count = min(GoodBufferSize, size);
+ ssize_t count = min(PAGE_SIZE, size);
memset(buffer, 0, (size_t)count);
return count;
}