diff --git a/xwords4/common/game.c b/xwords4/common/game.c index 8a7acd5c9..78e4f0a35 100644 --- a/xwords4/common/game.c +++ b/xwords4/common/game.c @@ -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 ); diff --git a/xwords4/common/game.h b/xwords4/common/game.h index 6a68a9bf0..caeea7140 100644 --- a/xwords4/common/game.h +++ b/xwords4/common/game.h @@ -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