summaryrefslogtreecommitdiff
path: root/userland/libc/stdio/fopen.c
diff options
context:
space:
mode:
authorAnton Kling <anton@kling.gg>2023-11-23 00:52:35 +0100
committerAnton Kling <anton@kling.gg>2023-11-23 00:52:35 +0100
commit81819f711e6d1f9216f688da8ecbbc682d106d9c (patch)
tree0f0df7c43cc5bc956c2c067e55766bfa90823a7f /userland/libc/stdio/fopen.c
parentec91e81a4fcfd7ee6bc4150f06d8740e82f808da (diff)
LibC: Reduce warnings in code
Diffstat (limited to 'userland/libc/stdio/fopen.c')
-rw-r--r--userland/libc/stdio/fopen.c5
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;
}
}