summaryrefslogtreecommitdiff
path: root/network.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-01-14 19:44:42 +0000
committertron <tron@openttd.org>2005-01-14 19:44:42 +0000
commit3a838447a8b07f880567b452f274e732c0c712b4 (patch)
treed828e21ec23baa344c4322a92d6bca5c68aa692a /network.c
parent4136f395bf45b537d9756efb045c7db4bafa975d (diff)
downloadopenttd-3a838447a8b07f880567b452f274e732c0c712b4.tar.xz
(svn r1509) Const correctness and add static where appropriate while touching the lines anyway
Diffstat (limited to 'network.c')
-rw-r--r--network.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/network.c b/network.c
index dc26e4063..ebbc8d2f9 100644
--- a/network.c
+++ b/network.c
@@ -188,12 +188,14 @@ void NetworkError(StringID error_string)
_switch_mode_errorstr = error_string;
}
-void ClientStartError(char *error) {
+static void ClientStartError(const char *error)
+{
DEBUG(net, 0)("[NET] Client could not start network: %s",error);
NetworkError(STR_NETWORK_ERR_CLIENT_START);
}
-void ServerStartError(char *error) {
+static void ServerStartError(const char *error)
+{
DEBUG(net, 0)("[NET] Server could not start network: %s",error);
NetworkError(STR_NETWORK_ERR_SERVER_START);
}