Update linusus once again

This commit is contained in:
MrLetsplay 2022-08-29 15:17:11 +02:00
parent 10eac9e242
commit 3e712d309e

View File

@ -14,8 +14,6 @@ struct sus_File_impl{
int fd;
};
typedef struct sus_File_impl sus_File_impl;
sus_File sus_fileOpenInMem(char * fileName, unsigned long parameter) {
int flags = O_RDWR;
if(parameter & SUS_FILE_NEW) flags |= O_CREAT | O_EXCL;
@ -43,7 +41,7 @@ sus_File sus_fileOpenInMem(char * fileName, unsigned long parameter) {
return NULL;
}
sus_File_impl *file = (sus_File_impl *) sus_heapAlloc(sizeof(sus_File_impl));
sus_File file = (sus_File) sus_heapAlloc(sizeof(struct sus_File_impl));
file->memroy = mem;
file->length = info.st_size;
file->fd = fd;