Fix typo in Read, Write and Peek functions signatures
All checks were successful
CI / build-and-analyze (push) Successful in 1m0s
All checks were successful
CI / build-and-analyze (push) Successful in 1m0s
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user