version 1.9 | | version 1.10 |
---|
| | |
/* | | /* |
* static char *rcsid_metaserver_c = | | * static char *rcsid_metaserver_c = |
* "$Id: metaserver.c,v 1.9 2001/05/25 03:59:36 mwedel Exp $"; | | * "$Id: metaserver.c,v 1.10 2001/05/29 04:41:54 mwedel Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
*/ | | */ |
for (pl=first_player; pl!=NULL; pl=pl->next) num_players++; | | for (pl=first_player; pl!=NULL; pl=pl->next) num_players++; |
| | |
sprintf(data,"%s|%d|%s|%s|%d|%d|%d", settings.meta_host, num_players, VERSION, | | sprintf(data,"%s|%d|%s|%s|%d|%d|%ld", settings.meta_host, num_players, VERSION, |
settings.meta_comment, cst_tot.ibytes, cst_tot.obytes, | | settings.meta_comment, cst_tot.ibytes, cst_tot.obytes, |
time(NULL) - cst_tot.time_start); | | (long)time(NULL) - cst_tot.time_start); |
#ifdef WIN32 /* ---win32 metaserver_init(): this removes a warning */ | | #ifdef WIN32 /* ---win32 metaserver_init(): this removes a warning */ |
if (sendto(metafd, data, strlen(data), 0, (struct sockaddr *)&sock, sizeof(sock))<0) { | | if (sendto(metafd, data, strlen(data), 0, (struct sockaddr *)&sock, sizeof(sock))<0) { |
#else | | #else |