Less compile warnings on linux

This commit is contained in:
UnknownShadow200 2019-08-20 07:17:05 +10:00
parent 53f1c4463b
commit 1f93a262f8
2 changed files with 2 additions and 2 deletions

View File

@ -133,7 +133,7 @@ static void Chat_OpenLog(struct DateTime* now) {
return;
}
logStream.Meta.File = NULL;
logStream.Meta.File = 0;
Chat_DisableLogging();
Chat_Add1("&cFailed to open a chat log file after %i tries, giving up", &i);
}

View File

@ -95,7 +95,7 @@ static ReturnCode Stream_FileWrite(struct Stream* s, const uint8_t* data, uint32
}
static ReturnCode Stream_FileClose(struct Stream* s) {
ReturnCode res = File_Close(s->Meta.File);
s->Meta.File = NULL;
s->Meta.File = 0;
return res;
}
static ReturnCode Stream_FileSkip(struct Stream* s, uint32_t count) {