(svn r5298) Hide function declarations and remove function stubs which aren't needed in the !ENABLE_NETWORK case
authortron
Sat, 17 Jun 2006 14:11:26 +0000
changeset 4038 b23bbe44d1ba
parent 4037 cac65872c4c1
child 4039 eacd29ce18d9
(svn r5298) Hide function declarations and remove function stubs which aren't needed in the !ENABLE_NETWORK case
network.c
network.h
--- a/network.c	Sat Jun 17 13:25:22 2006 +0000
+++ b/network.c	Sat Jun 17 14:11:26 2006 +0000
@@ -1433,9 +1433,5 @@
 	}
 	#endif
 }
-#else
-
-void ParseConnectionString(const char **player, const char **port, char *connection_string) {}
-void NetworkUpdateClientInfo(uint16 client_index) {}
 
 #endif /* ENABLE_NETWORK */
--- a/network.h	Sat Jun 17 13:25:22 2006 +0000
+++ b/network.h	Sat Jun 17 14:11:26 2006 +0000
@@ -215,6 +215,13 @@
 VARDEF char *_network_host_list[10];
 VARDEF char *_network_ban_list[25];
 
+void ParseConnectionString(const char **player, const char **port, char *connection_string);
+void NetworkUpdateClientInfo(uint16 client_index);
+void NetworkAddServer(const char *b);
+void NetworkRebuildHostList(void);
+bool NetworkChangeCompanyPassword(byte argc, char *argv[]);
+void NetworkPopulateCompanyInfo(void);
+
 #endif /* ENABLE_NETWORK */
 
 // Those variables must always be registered!
@@ -224,11 +231,4 @@
 VARDEF bool _network_dedicated; // are we a dedicated server?
 VARDEF PlayerID _network_playas; // an id to play as..
 
-void ParseConnectionString(const char **player, const char **port, char *connection_string);
-void NetworkUpdateClientInfo(uint16 client_index);
-void NetworkAddServer(const char *b);
-void NetworkRebuildHostList(void);
-bool NetworkChangeCompanyPassword(byte argc, char *argv[]);
-void NetworkPopulateCompanyInfo(void);
-
 #endif /* NETWORK_H */