mirror of
https://github.com/tbamud/tbamud.git
synced 2026-01-23 01:16:09 +01:00
Addressed several compiler warnings.
This commit is contained in:
parent
08374524d0
commit
fc4c64c782
61 changed files with 163 additions and 395 deletions
|
|
@ -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 );
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue