diff options
author | Anton Kling <anton@kling.gg> | 2023-11-22 00:47:55 +0100 |
---|---|---|
committer | Anton Kling <anton@kling.gg> | 2023-11-22 00:47:55 +0100 |
commit | f3c7d7fbdea1f2bac81909116ddb747a1f8abdf5 (patch) | |
tree | 62a1d998ce11bf4db4343f69dea4e8d231191e48 /userland/libc/stdio | |
parent | 24f81104f5ff9cb4ab7db766c53f77fe0e5b86cc (diff) |
Meta: Cleanup of header files such that they are partially shared
The /include directory contains definitons that both the kernel and libc
need to be in sync.
Diffstat (limited to 'userland/libc/stdio')
-rw-r--r-- | userland/libc/stdio/fread.c | 2 | ||||
-rw-r--r-- | userland/libc/stdio/fwrite.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/userland/libc/stdio/fread.c b/userland/libc/stdio/fread.c index 1a27afa..3d169fc 100644 --- a/userland/libc/stdio/fread.c +++ b/userland/libc/stdio/fread.c @@ -3,7 +3,7 @@ size_t fread(void *ptr, size_t size, size_t nmemb, FILE *stream) { // FIXME: Check for overflow - ssize_t bytes_to_read = nmemb * size; + size_t bytes_to_read = nmemb * size; size_t rc = stream->read(stream, ptr, bytes_to_read); // On success, fread() return the number of items read rc /= size; diff --git a/userland/libc/stdio/fwrite.c b/userland/libc/stdio/fwrite.c index 552bbd6..6065465 100644 --- a/userland/libc/stdio/fwrite.c +++ b/userland/libc/stdio/fwrite.c @@ -3,7 +3,7 @@ size_t fwrite(const void *ptr, size_t size, size_t nmemb, FILE *stream) { // FIXME: Check for overflow - ssize_t bytes_to_write = nmemb * size; + size_t bytes_to_write = nmemb * size; size_t rc = stream->write(stream, ptr, bytes_to_write); // On success, fwrite() return the number of items // written. |