X-Git-Url: http://git.shiar.nl/netris.git/blobdiff_plain/7b1d1bee46133a746a88306413c028b0e75a3688..406e72f6bc3be827e1202d817677e8af093231dc:/server.c diff --git a/server.c b/server.c index 814ac4e..d33cf24 100644 --- a/server.c +++ b/server.c @@ -59,7 +59,7 @@ static char verbose = 0; struct sockaddr_in addr; -MyEventType NetGenFunc(EventGenRec *gen, MyEvent *event); +static MyEventType NetGenFunc(EventGenRec *gen, MyEvent *event); static EventGenRec netGen[MAX_SCREENS] = { { NULL, 0, FT_read, -1, NetGenFunc, EM_net, 0, "\0", 0, HEADER_SIZE } }; @@ -79,7 +79,7 @@ static EventGenRec *nextGen = &alarmGen; static sigjmp_buf close_env; -void SendPacketTo(short playa, short uid, NetPacketType type, int size, void *data) +static void SendPacketTo(short playa, short uid, NetPacketType type, int size, void *data) { //send to someone netint4 header[3]; @@ -101,7 +101,7 @@ static MyEventType AlarmGenFunc(EventGenRec *gen, MyEvent *event) return E_alarm; } -void SCloseNet(short playa) +static void SCloseNet(short playa) { //kick some connection's ass! MyEvent event; @@ -117,7 +117,7 @@ void SCloseNet(short playa) RemoveEventGen(&netGen[playa]); } -void CloseNets(void) +static void CloseNets(void) { //nou oogjes dicht en snaveltjes toe int i; @@ -127,7 +127,7 @@ void CloseNets(void) fprintf(stderr, MSG_SERVER_CLOSE_ALL_DONE "\n\n"); } -MyEventType NetGenFunc(EventGenRec *gen, MyEvent *event) +static MyEventType NetGenFunc(EventGenRec *gen, MyEvent *event) { //receive int result; short uid, type, size; @@ -204,7 +204,7 @@ static MyEventType ConnGenFunc(EventGenRec *gen, MyEvent *event) return E_connect; } -void CountPlayers(void) +static void CountPlayers(void) { //count number of players/teams int i, j; playercount = 0; @@ -219,7 +219,7 @@ void CountPlayers(void) } //player alive } -int StartServer(void) +static int StartServer(void) { MyEvent event; netint2 currentpiece[MAX_SCREENS]; @@ -424,12 +424,12 @@ int StartServer(void) } -void SHeader(void) +static void SHeader(void) { fprintf(stderr, MSG_SERVER_TITLE "\n\n", version_string); } -void SUsage(void) +static void SUsage(void) { SHeader(); fprintf(stderr, @@ -450,7 +450,7 @@ void SUsage(void) ); } -void HandleOption(char tag, char *value) +static void HandleOption(char tag, char *value) { switch (tag) { case 'v': //verbose @@ -489,7 +489,7 @@ void HandleOption(char tag, char *value) } } -void ReadConf(char *filename) +static void ReadConf(char *filename) { FILE *file_in; char buf[513]; @@ -524,7 +524,7 @@ void ReadConf(char *filename) } -void CatchInt(int sig) +static void CatchInt(int sig) { siglongjmp(close_env, 1); }