(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.
This commit is contained in:
truelight
2004-12-19 10:17:26 +00:00
parent bb5dca016d
commit 0e19f74c16
15 changed files with 118 additions and 116 deletions

View File

@@ -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;