Fixed some things GCC complained about on this Linux box.

This commit is contained in:
Ryan C. Gordon 2016-04-02 02:03:41 -04:00
parent 2be26952c7
commit 9c5fa5f0fc
2 changed files with 2 additions and 2 deletions

View File

@ -208,7 +208,7 @@ CTString CCompMessage::GetLine(INDEX iLine)
} }
// find end of line // find end of line
CTString strLine = strText; CTString strLine = strText;
char *pchEndOfLine = strchr(strLine, '\n'); char *pchEndOfLine = (char *) strchr(strLine, '\n');
// if found // if found
if (pchEndOfLine!=NULL) { if (pchEndOfLine!=NULL) {
// cut there // cut there

View File

@ -31,7 +31,7 @@ CTString GetNextParam(void)
// if the first char is quote // if the first char is quote
if (_strCmd[0]=='"') { if (_strCmd[0]=='"') {
// find first next quote // find first next quote
char *pchClosingQuote = strchr(_strCmd+1, '"'); char *pchClosingQuote = (char *) strchr(_strCmd+1, '"');
// if not found // if not found
if (pchClosingQuote==NULL) { if (pchClosingQuote==NULL) {
// error in command line // error in command line