]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fix two warnings
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 9 Nov 2007 21:22:11 +0000 (21:22 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 9 Nov 2007 21:22:11 +0000 (21:22 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7676 d7cf8633-e32d-0410-b094-e92efae38249

netconn.c

index ae4928ef4ba7888cec129c6b1a24bdccf2171d35..e3b196b42c73e23d65e316f6a5a93ef2c426669e 100755 (executable)
--- 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