summaryrefslogtreecommitdiff
path: root/network_server.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-01-05 12:40:50 +0000
committertron <tron@openttd.org>2006-01-05 12:40:50 +0000
commite272b03feea5b4c870dd4af5be9071c903c6173d (patch)
treed69972d96a0b32848f54422f41b00cf39d06c5f7 /network_server.c
parent980e8f525b924491915571c2ed03469bd6751047 (diff)
downloadopenttd-e272b03feea5b4c870dd4af5be9071c903c6173d.tar.xz
(svn r3365) Staticise 36 functions
Diffstat (limited to 'network_server.c')
-rw-r--r--network_server.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/network_server.c b/network_server.c
index 2dd20ffc5..ad0b42f26 100644
--- a/network_server.c
+++ b/network_server.c
@@ -24,9 +24,10 @@
// This file handles all the server-commands
-void NetworkHandleCommandQueue(NetworkClientState *cs);
+static void NetworkHandleCommandQueue(NetworkClientState* cs);
+static void NetworkSendPatchSettings(NetworkClientState* cs);
+
void NetworkPopulateCompanyInfo(void);
-void NetworkSendPatchSettings(NetworkClientState *cs);
// Is the network enabled?
@@ -1190,7 +1191,7 @@ extern const SettingDesc patch_settings[];
// This is a TEMPORARY solution to get the patch-settings
// to the client. When the patch-settings are saved in the savegame
// this should be removed!!
-void NetworkSendPatchSettings(NetworkClientState *cs)
+static void NetworkSendPatchSettings(NetworkClientState* cs)
{
const SettingDesc *item;
Packet *p = NetworkSend_Init(PACKET_SERVER_MAP);
@@ -1484,7 +1485,8 @@ bool NetworkServer_ReadPackets(NetworkClientState *cs)
}
// Handle the local command-queue
-void NetworkHandleCommandQueue(NetworkClientState *cs) {
+static void NetworkHandleCommandQueue(NetworkClientState* cs)
+{
CommandPacket *cp;
while ( (cp = cs->command_queue) != NULL) {