From 9c5fa5f0fc091f1ec4d3c2f25e2fdf52dc1511cb Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Sat, 2 Apr 2016 02:03:41 -0400 Subject: [PATCH] Fixed some things GCC complained about on this Linux box. --- Sources/GameMP/CompMessage.cpp | 2 +- Sources/SeriousSam/CmdLine.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/GameMP/CompMessage.cpp b/Sources/GameMP/CompMessage.cpp index 52a61c3..9d320d6 100644 --- a/Sources/GameMP/CompMessage.cpp +++ b/Sources/GameMP/CompMessage.cpp @@ -208,7 +208,7 @@ CTString CCompMessage::GetLine(INDEX iLine) } // find end of line CTString strLine = strText; - char *pchEndOfLine = strchr(strLine, '\n'); + char *pchEndOfLine = (char *) strchr(strLine, '\n'); // if found if (pchEndOfLine!=NULL) { // cut there diff --git a/Sources/SeriousSam/CmdLine.cpp b/Sources/SeriousSam/CmdLine.cpp index dc949af..63ec73f 100644 --- a/Sources/SeriousSam/CmdLine.cpp +++ b/Sources/SeriousSam/CmdLine.cpp @@ -31,7 +31,7 @@ CTString GetNextParam(void) // if the first char is quote if (_strCmd[0]=='"') { // find first next quote - char *pchClosingQuote = strchr(_strCmd+1, '"'); + char *pchClosingQuote = (char *) strchr(_strCmd+1, '"'); // if not found if (pchClosingQuote==NULL) { // error in command line