diff options
author | Anton Kling <anton@kling.gg> | 2023-11-23 00:52:35 +0100 |
---|---|---|
committer | Anton Kling <anton@kling.gg> | 2023-11-23 00:52:35 +0100 |
commit | 81819f711e6d1f9216f688da8ecbbc682d106d9c (patch) | |
tree | 0f0df7c43cc5bc956c2c067e55766bfa90823a7f /userland/libc/stdio/fopen.c | |
parent | ec91e81a4fcfd7ee6bc4150f06d8740e82f808da (diff) |
LibC: Reduce warnings in code
Diffstat (limited to 'userland/libc/stdio/fopen.c')
-rw-r--r-- | userland/libc/stdio/fopen.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/userland/libc/stdio/fopen.c b/userland/libc/stdio/fopen.c index 6a3f374..d31082d 100644 --- a/userland/libc/stdio/fopen.c +++ b/userland/libc/stdio/fopen.c @@ -1,6 +1,7 @@ #include <fcntl.h> #include <stdint.h> #include <stdio.h> +#include <stdlib.h> #include <sys/stat.h> // FIXME: All modes not implemented @@ -8,7 +9,7 @@ FILE *fopen(const char *pathname, const char *mode) { uint8_t read = 0; uint8_t write = 0; - uint8_t append = 0; +// uint8_t append = 0; // FIXME: Not parsed correctly for (; *mode; mode++) { // r or rb @@ -26,7 +27,7 @@ FILE *fopen(const char *pathname, const char *mode) { write = 1; break; case 'a': - append = 1; +// append = 1; break; } } |