summaryrefslogtreecommitdiff
path: root/network_client.c
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2004-12-19 10:17:26 +0000
committertruelight <truelight@openttd.org>2004-12-19 10:17:26 +0000
commitdf995a32ed6e65dfe64f6e46cd3819a1e6f2e0e8 (patch)
treeaf44976063392f71dcb2b8e4d2311d79578d0684 /network_client.c
parented99219348977f5600908d6fcdd75f85ee5d73eb (diff)
downloadopenttd-df995a32ed6e65dfe64f6e46cd3819a1e6f2e0e8.tar.xz
(svn r1168) -Cleanup: [Network] Cleaned the network code a bit. Added 'const'
and 'void' where needed, prefixed all functions, typedefs and global vars with 'Network' and organized all externals nicely.
Diffstat (limited to 'network_client.c')
-rw-r--r--network_client.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/network_client.c b/network_client.c
index 649aa1ca4..1ac821fc1 100644
--- a/network_client.c
+++ b/network_client.c
@@ -15,6 +15,8 @@
// This file handles all the client-commands
+extern const char _openttd_revision[];
+
// So we don't make too much typos ;)
#define MY_CLIENT DEREF_CLIENT(0)
@@ -43,8 +45,6 @@ DEF_CLIENT_SEND_COMMAND(PACKET_CLIENT_COMPANY_INFO)
NetworkSend_Packet(p, MY_CLIENT);
}
-extern const char _openttd_revision[];
-
DEF_CLIENT_SEND_COMMAND(PACKET_CLIENT_JOIN)
{
//
@@ -805,7 +805,7 @@ void NetworkClient_Connected(void)
}
// Reads the packets from the socket-stream, if available
-NetworkRecvStatus NetworkClient_ReadPackets(ClientState *cs)
+NetworkRecvStatus NetworkClient_ReadPackets(NetworkClientState *cs)
{
Packet *p;
NetworkRecvStatus res = NETWORK_RECV_STATUS_OKAY;