summaryrefslogtreecommitdiff
path: root/src/network
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2010-08-29 15:58:43 +0000
committeralberth <alberth@openttd.org>2010-08-29 15:58:43 +0000
commit9f5a96ead210338d8fc343108a8633da5e04e340 (patch)
treede03e1764ebef64977250f6ca88b26b93e313a63 /src/network
parent219ad6e0032efd16afa177e6b6e09c7e7a7b4141 (diff)
downloadopenttd-9f5a96ead210338d8fc343108a8633da5e04e340.tar.xz
(svn r20689) -Codechange: Make some global functions used in 1 .cpp file static in that file.
Diffstat (limited to 'src/network')
-rw-r--r--src/network/network_func.h1
-rw-r--r--src/network/network_server.cpp2
2 files changed, 1 insertions, 2 deletions
diff --git a/src/network/network_func.h b/src/network/network_func.h
index 3a0024f13..02ee1a327 100644
--- a/src/network/network_func.h
+++ b/src/network/network_func.h
@@ -72,7 +72,6 @@ const char *GetClientIP(NetworkClientInfo *ci);
void NetworkServerDoMove(ClientID client_id, CompanyID company_id);
void NetworkServerSendRcon(ClientID client_id, ConsoleColour colour_code, const char *string);
-void NetworkServerSendError(ClientID client_id, NetworkErrorCode error);
void NetworkServerSendChat(NetworkAction action, DestType type, int dest, const char *msg, ClientID from_id, int64 data = 0);
void NetworkServerKickClient(ClientID client_id);
diff --git a/src/network/network_server.cpp b/src/network/network_server.cpp
index b8ea9fa62..95b65b3f4 100644
--- a/src/network/network_server.cpp
+++ b/src/network/network_server.cpp
@@ -1776,7 +1776,7 @@ void NetworkServerSendRcon(ClientID client_id, ConsoleColour colour_code, const
SEND_COMMAND(PACKET_SERVER_RCON)(NetworkFindClientStateFromClientID(client_id), colour_code, string);
}
-void NetworkServerSendError(ClientID client_id, NetworkErrorCode error)
+static void NetworkServerSendError(ClientID client_id, NetworkErrorCode error)
{
SEND_COMMAND(PACKET_SERVER_ERROR)(NetworkFindClientStateFromClientID(client_id), error);
}