From c313816329efcb3d80304fc6b2fbc9507c3ed16c Mon Sep 17 00:00:00 2001 From: havoc Date: Mon, 13 Jun 2005 01:18:00 +0000 Subject: [PATCH] fix two signed/unsigned mismatch warnings reported by Willis git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5429 d7cf8633-e32d-0410-b094-e92efae38249 --- netconn.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/netconn.c b/netconn.c index a70c06ac..e806457a 100755 --- a/netconn.c +++ b/netconn.c @@ -1224,7 +1224,7 @@ void NetConn_QueryQueueFrame(void) for( index = 0, queries = 0 ; index < serverlist_cachecount && queries < maxqueries ; index++ ) { serverlist_entry_t *entry = &serverlist_cache[ index ]; - if( entry->query != SQS_QUERYING ) + if( entry->query != SQS_QUERYING ) { continue; } @@ -1235,7 +1235,7 @@ void NetConn_QueryQueueFrame(void) continue; } - if( entry->querycounter != (unsigned) net_slist_maxtries.integer ) + if( entry->querycounter != (unsigned) net_slist_maxtries.integer ) { lhnetaddress_t address; int socket; @@ -1253,8 +1253,8 @@ void NetConn_QueryQueueFrame(void) Con_Printf("querying %25s (%i. try)\n", entry->info.cname, entry->querycounter); queries++; - } - else + } + else { entry->query = SQS_TIMEDOUT; } @@ -1338,7 +1338,7 @@ static qboolean NetConn_BuildStatusResponse(const char* challenge, char* out_msg int length; // How many clients are there? - for (i = 0;i < svs.maxclients;i++) + for (i = 0;i < (unsigned int)svs.maxclients;i++) if (svs.clients[i].active) nb_clients++; @@ -1367,7 +1367,7 @@ static qboolean NetConn_BuildStatusResponse(const char* challenge, char* out_msg ptr = out_msg + length; left = out_size - length; - for (i = 0;i < svs.maxclients;i++) + for (i = 0;i < (unsigned int)svs.maxclients;i++) { client_t *cl = &svs.clients[i]; if (cl->active) -- 2.39.2