diff options
author | smatz <smatz@openttd.org> | 2011-01-01 21:39:52 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2011-01-01 21:39:52 +0000 |
commit | 8b6a8a89354e8c1390b9460ae03505c1dccb776e (patch) | |
tree | 280cf0261e382c08347362ea5997e07746a33b29 /src | |
parent | 13456934b1957b6dcd432eaf8a1e85f90fdf1ccf (diff) | |
download | openttd-8b6a8a89354e8c1390b9460ae03505c1dccb776e.tar.xz |
(svn r21692) -Cleanup: remove unused extern declaration of HashCurrentCompanyPassword(), make it static
Diffstat (limited to 'src')
-rw-r--r-- | src/console_cmds.cpp | 2 | ||||
-rw-r--r-- | src/network/network_client.cpp | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/src/console_cmds.cpp b/src/console_cmds.cpp index 8f4cf50b9..375f98cc5 100644 --- a/src/console_cmds.cpp +++ b/src/console_cmds.cpp @@ -1507,8 +1507,6 @@ DEF_CONSOLE_CMD(ConSayClient) return true; } -extern void HashCurrentCompanyPassword(const char *password); - DEF_CONSOLE_CMD(ConCompanyPassword) { if (argc == 0) { diff --git a/src/network/network_client.cpp b/src/network/network_client.cpp index 73877dda8..c4c46b208 100644 --- a/src/network/network_client.cpp +++ b/src/network/network_client.cpp @@ -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. */ -void HashCurrentCompanyPassword(const char *password) +static void HashCurrentCompanyPassword(const char *password) { _password_game_seed = _settings_game.game_creation.generation_seed; strecpy(_password_server_id, _settings_client.network.network_id, lastof(_password_server_id)); |