(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

@@ -106,7 +106,7 @@ DEF_UDP_RECEIVE_COMMAND(PACKET_UDP_SERVER_RESPONSE)
DEF_UDP_RECEIVE_COMMAND(PACKET_UDP_CLIENT_DETAIL_INFO)
{
ClientState *cs;
NetworkClientState *cs;
NetworkClientInfo *ci;
Packet *packet;
Player *player;
@@ -471,7 +471,7 @@ void NetworkUDPQueryServer(const byte* host, unsigned short port)
/* Register us to the master server
This function checks if it needs to send an advertise */
void NetworkUDPAdvertise()
void NetworkUDPAdvertise(void)
{
struct sockaddr_in out_addr;
Packet *p;