Fix typo in Read, Write and Peek functions signatures
All checks were successful
CI / build-and-analyze (push) Successful in 1m0s

This commit is contained in:
2026-07-26 19:22:05 +03:00
parent ee0fe4ff2d
commit 7e97383d0d
4 changed files with 8 additions and 8 deletions

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;