Addressed several compiler warnings.

This commit is contained in:
mcclure 2017-10-09 13:03:48 -04:00
parent 08374524d0
commit fc4c64c782
61 changed files with 163 additions and 395 deletions

View file

@ -2498,15 +2498,19 @@ static bool_t IsValidColour( const char *apArgument )
static bool_t MatchString( const char *apFirst, const char *apSecond )
{
while ( *apFirst && tolower(*apFirst) == tolower(*apSecond) )
++apFirst, ++apSecond;
while ( *apFirst && tolower(*apFirst) == tolower(*apSecond) ) {
++apFirst;
++apSecond;
}
return ( !*apFirst && !*apSecond );
}
static bool_t PrefixString( const char *apPart, const char *apWhole )
{
while ( *apPart && tolower(*apPart) == tolower(*apWhole) )
++apPart, ++apWhole;
while ( *apPart && tolower(*apPart) == tolower(*apWhole) ) {
++apPart;
++apWhole;
}
return ( !*apPart );
}