From: havoc Date: Fri, 9 Nov 2007 21:22:11 +0000 (+0000) Subject: fix two warnings X-Git-Tag: xonotic-v0.1.0preview~2805 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=1b9618070d5d3d68c8323e89b55e5d8ff9c6fdda;p=xonotic%2Fdarkplaces.git fix two warnings git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7676 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/netconn.c b/netconn.c index ae4928ef..e3b196b4 100755 --- a/netconn.c +++ b/netconn.c @@ -1260,7 +1260,7 @@ static int NetConn_ClientParsePacket_ServerList_ProcessReply(const char *address } else { // convert to unsigned to catch the -1 // I still dont like this but its better than the old 10000 magic ping number - as in easier to type and read :( [11/8/2007 Black] - entry->info.ping = min((unsigned) entry->info.ping, pingtime); + entry->info.ping = min((unsigned) entry->info.ping, (unsigned) pingtime); serverreplycount++; } @@ -1289,7 +1289,6 @@ static void NetConn_ClientParsePacket_ServerList_UpdateCache(int n) // returns true, if it's sensible to continue the processing static qboolean NetConn_ClientParsePacket_ServerList_PrepareQuery( int protocol, const char *ipstring ) { int n; - qboolean refreshing = false; serverlist_entry_t *entry; // ignore the rest of the message if the serverlist is full