summaryrefslogtreecommitdiff
path: root/libpsx/include
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi.dcr@tutanota.com>2023-11-29 13:00:13 +0100
committerXavier Del Campo Romero <xavi.dcr@tutanota.com>2023-11-29 13:00:13 +0100
commitc6ded28dcede2a2c3b1b53c1d89a9d1e36b35339 (patch)
tree37c1efa98c0ce1943d1d84f4f0e3e89ad13c34f8 /libpsx/include
parentc157ae7c78965f390d380a068fe08db0843bb813 (diff)
downloadpsxsdk-c6ded28dcede2a2c3b1b53c1d89a9d1e36b35339.tar.gz
libpsx: Fix const-correctness for fwrite(3)
According to C99 ยง7.19.8.2p1, fwrite(3) is expected to take a const void *, and not void *.
Diffstat (limited to 'libpsx/include')
-rw-r--r--libpsx/include/stdio.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpsx/include/stdio.h b/libpsx/include/stdio.h
index 34d2d57..b0979cc 100644
--- a/libpsx/include/stdio.h
+++ b/libpsx/include/stdio.h
@@ -118,7 +118,7 @@ FILE *fdopen(int fildes, const char *mode);
FILE *fopen(const char *path, const char *mode);
int fclose(FILE *stream);
size_t fread(void *ptr, size_t size, size_t nmemb, FILE *stream);
-size_t fwrite(void *ptr, size_t size, size_t nmemb, FILE *stream);
+size_t fwrite(const void *ptr, size_t size, size_t nmemb, FILE *stream);
int fgetc(FILE *f);
int ftell(FILE *f);