1
0
Fork 0

(svn r21692) -Cleanup: remove unused extern declaration of HashCurrentCompanyPassword(), make it static

release/1.1
smatz 2011-01-01 21:39:52 +00:00
parent 13456934b1
commit 8b6a8a8935
2 changed files with 1 additions and 3 deletions

View File

@ -1507,8 +1507,6 @@ DEF_CONSOLE_CMD(ConSayClient)
return true; return true;
} }
extern void HashCurrentCompanyPassword(const char *password);
DEF_CONSOLE_CMD(ConCompanyPassword) DEF_CONSOLE_CMD(ConCompanyPassword)
{ {
if (argc == 0) { if (argc == 0) {

View File

@ -333,7 +333,7 @@ static const char *GenerateCompanyPasswordHash(const char *password)
/** /**
* Hash the current company password; used when the server 'company' sets his/her password. * Hash the current company password; used when the server 'company' sets his/her password.
*/ */
void HashCurrentCompanyPassword(const char *password) static void HashCurrentCompanyPassword(const char *password)
{ {
_password_game_seed = _settings_game.game_creation.generation_seed; _password_game_seed = _settings_game.game_creation.generation_seed;
strecpy(_password_server_id, _settings_client.network.network_id, lastof(_password_server_id)); strecpy(_password_server_id, _settings_client.network.network_id, lastof(_password_server_id));