From 1f93a262f88500e74ff3473833cf14013cc3af5f Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Tue, 20 Aug 2019 07:17:05 +1000 Subject: [PATCH] Less compile warnings on linux --- src/Chat.c | 2 +- src/Stream.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Chat.c b/src/Chat.c index d4f9196d0..3cdd56f5d 100644 --- a/src/Chat.c +++ b/src/Chat.c @@ -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); } diff --git a/src/Stream.c b/src/Stream.c index 0f0ee8c68..8fc4db92f 100644 --- a/src/Stream.c +++ b/src/Stream.c @@ -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) {