Fix typo in Read, Write and Peek functions signatures

This commit is contained in:
blankhex committed 2026-07-26 19:22:05 +03:00
1 parent ee0fe4ff2d
commit 7e97383d0d
4 files changed
+8 -8

No files matched your search

+2 -2
View File
@@ -131,7 +131,7 @@ void CgeFileFree(CgeFile *file) {
free(file);
}
int CgeFileRead(CgeFile *file, char *buffer, size_t size, size_t *actual) {
int CgeFileRead(CgeFile *file, void *buffer, size_t size, size_t *actual) {
ssize_t readed;
if (file->flags & CGE_FILE_ERROR)
@@ -153,7 +153,7 @@ error:
return 0;
}
int CgeFileWrite(CgeFile *file, const char *buffer, size_t size,
int CgeFileWrite(CgeFile *file, const void *buffer, size_t size,
size_t *actual) {
ssize_t written;