add missing consts

This commit is contained in:
Eric House 2019-03-11 10:32:22 -07:00
parent 94f7e13468
commit 4aee08b8d4
2 changed files with 4 additions and 4 deletions

View file

@ -683,7 +683,7 @@ gi_setDict( MPFORMAL CurGameInfo* gi, const DictionaryCtxt* dict )
#endif
XP_Bool
player_hasPasswd( LocalPlayer* player )
player_hasPasswd( const LocalPlayer* player )
{
XP_UCHAR* password = player->password;
/* XP_ASSERT( player->isLocal ); */
@ -691,7 +691,7 @@ player_hasPasswd( LocalPlayer* player )
} /* player_hasPasswd */
XP_Bool
player_passwordMatches( LocalPlayer* player, const XP_UCHAR* buf )
player_passwordMatches( const LocalPlayer* player, const XP_UCHAR* buf )
{
XP_ASSERT( player->isLocal );

View file

@ -99,8 +99,8 @@ void gi_readFromStream( MPFORMAL XWStreamCtxt* stream, CurGameInfo* gi );
void gi_copy( MPFORMAL CurGameInfo* destGI, const CurGameInfo* srcGi );
XP_U16 gi_countLocalPlayers( const CurGameInfo* gi, XP_Bool humanOnly );
XP_Bool player_hasPasswd( LocalPlayer* player );
XP_Bool player_passwordMatches( LocalPlayer* player, const XP_UCHAR* pwd );
XP_Bool player_hasPasswd( const LocalPlayer* player );
XP_Bool player_passwordMatches( const LocalPlayer* player, const XP_UCHAR* pwd );
XP_U16 player_timePenalty( CurGameInfo* gi, XP_U16 playerNum );
#ifdef CPLUS