(svn r7076) -Codechange: Prefer includes instead of using extern. Move UpdateNetworkGameWindow
declaration to network.h, and remove stale externs of NetworkPopulateCompanyInfo
--- a/network.h Mon Nov 06 00:10:47 2006 +0000
+++ b/network.h Mon Nov 06 00:12:55 2006 +0000
@@ -221,6 +221,7 @@
void NetworkRebuildHostList(void);
bool NetworkChangeCompanyPassword(byte argc, char *argv[]);
void NetworkPopulateCompanyInfo(void);
+void UpdateNetworkGameWindow(bool unselect);
void CheckMinPlayers(void);
void NetworkStartUp(void);
--- a/network_gamelist.c Mon Nov 06 00:10:47 2006 +0000
+++ b/network_gamelist.c Mon Nov 06 00:12:55 2006 +0000
@@ -9,8 +9,6 @@
// This file handles the GameList
// Also, it handles the request to a server for data about the server
-extern void UpdateNetworkGameWindow(bool unselect);
-
/** Add a new item to the linked gamelist. If the IP and Port match
* return the existing item instead of adding it again
* @param ip the IP-address (inet_addr) of the to-be added item
--- a/network_server.c Mon Nov 06 00:10:47 2006 +0000
+++ b/network_server.c Mon Nov 06 00:12:55 2006 +0000
@@ -25,7 +25,6 @@
// This file handles all the server-commands
static void NetworkHandleCommandQueue(NetworkClientState* cs);
-void NetworkPopulateCompanyInfo(void);
// **********
// Sending functions
--- a/network_udp.c Mon Nov 06 00:10:47 2006 +0000
+++ b/network_udp.c Mon Nov 06 00:12:55 2006 +0000
@@ -12,9 +12,6 @@
#include "network_udp.h"
#include "variables.h"
-extern void UpdateNetworkGameWindow(bool unselect);
-extern void NetworkPopulateCompanyInfo(void);
-
//
// This file handles all the LAN-stuff
// Stuff like: