mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-24 02:09:28 +00:00
Kernel: Remove various other uses of ssize_t
This commit is contained in:
committed by
Andreas Kling
parent
ca3cae81eb
commit
bc3076f894
@@ -9,10 +9,10 @@
|
||||
|
||||
namespace Kernel {
|
||||
|
||||
KResultOr<ssize_t> Process::sys$get_dir_entries(int fd, Userspace<void*> user_buffer, ssize_t user_size)
|
||||
KResultOr<size_t> Process::sys$get_dir_entries(int fd, Userspace<void*> user_buffer, size_t user_size)
|
||||
{
|
||||
REQUIRE_PROMISE(stdio);
|
||||
if (user_size < 0)
|
||||
if (user_size > NumericLimits<ssize_t>::max())
|
||||
return EINVAL;
|
||||
auto description = file_description(fd);
|
||||
if (!description)
|
||||
|
||||
Reference in New Issue
Block a user