From 4024494a1a42cb2dbeebd92b865421308e5d1aae Mon Sep 17 00:00:00 2001 From: Michal Zima Date: Fri, 18 Jun 2010 13:16:21 +0200 Subject: More of the same as in the previous commit --- src/base/server.c | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) (limited to 'src/base/server.c') diff --git a/src/base/server.c b/src/base/server.c index 5c75d1f..6f26859 100644 --- a/src/base/server.c +++ b/src/base/server.c @@ -152,14 +152,12 @@ static void eventDelClientFromListClient(client_t *client) list_del_item(listClient, offset, server_udp_destroy_client); } -static void delZombieCLient(void *p_nothink) +static void delZombieCLient(void *p_nothing) { client_t *thisClient; my_time_t currentTime; int i; - UNUSED(p_nothink); - currentTime = timer_get_current_time(); for (i = 0; i < listClient->count; i++) { @@ -182,17 +180,15 @@ static void delZombieCLient(void *p_nothink) } } -static void eventPeriodicSyncClient(void *p_nothink) +static void eventPeriodicSyncClient(void *p_nothing) { client_t *thisClientSend; tux_t *thisTux; int i; - UNUSED(p_nothink); - #ifndef PUBLIC_SERVER proto_send_newtux_server(PROTO_SEND_ALL_SEES_TUX, NULL, world_get_control_tux(TUX_CONTROL_KEYBOARD_RIGHT)); -#endif +#endif /* PUBLIC_SERVER */ for (i = 0; i < listClient->count; i++) { thisClientSend = (client_t *) listClient->list[i]; @@ -207,10 +203,8 @@ static void eventPeriodicSyncClient(void *p_nothink) } } -static void eventSendPingClients(void *p_nothink) +static void eventSendPingClients(void *p_nothing) { - UNUSED(p_nothink); - proto_send_ping_server(PROTO_SEND_ALL, NULL); } @@ -277,7 +271,7 @@ void server_send_client(client_t *p, char *msg) assert(msg != NULL); if (p->status != NET_STATUS_ZOMBIE) { - int ret = -1; /* no warnings */ + int ret = -1; #ifndef PUBLIC_SERVER if (isParamFlag("--send")) { -- cgit v1.2.3