summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2006-11-06 00:12:55 +0000
committerDarkvater <darkvater@openttd.org>2006-11-06 00:12:55 +0000
commitd327ffb0f44e4b5ccff615a362143f50053bc062 (patch)
tree0de0e5c80746a9843fe4a4850974d15a5c647405
parentc9a19c29fee7a0ab240bba36401ea428eab254f2 (diff)
downloadopenttd-d327ffb0f44e4b5ccff615a362143f50053bc062.tar.xz
(svn r7076) -Codechange: Prefer includes instead of using extern. Move UpdateNetworkGameWindow
declaration to network.h, and remove stale externs of NetworkPopulateCompanyInfo
-rw-r--r--network.h1
-rw-r--r--network_gamelist.c2
-rw-r--r--network_server.c1
-rw-r--r--network_udp.c3
4 files changed, 1 insertions, 6 deletions
diff --git a/network.h b/network.h
index 61e7dab84..1b3416a51 100644
--- a/network.h
+++ b/network.h
@@ -221,6 +221,7 @@ void NetworkAddServer(const char *b);
void NetworkRebuildHostList(void);
bool NetworkChangeCompanyPassword(byte argc, char *argv[]);
void NetworkPopulateCompanyInfo(void);
+void UpdateNetworkGameWindow(bool unselect);
void CheckMinPlayers(void);
void NetworkStartUp(void);
diff --git a/network_gamelist.c b/network_gamelist.c
index a49a0159d..57f24b281 100644
--- a/network_gamelist.c
+++ b/network_gamelist.c
@@ -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
diff --git a/network_server.c b/network_server.c
index af78b95ac..94e50286f 100644
--- a/network_server.c
+++ b/network_server.c
@@ -25,7 +25,6 @@
// This file handles all the server-commands
static void NetworkHandleCommandQueue(NetworkClientState* cs);
-void NetworkPopulateCompanyInfo(void);
// **********
// Sending functions
diff --git a/network_udp.c b/network_udp.c
index 925d01209..ca66dfd01 100644
--- a/network_udp.c
+++ b/network_udp.c
@@ -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: