From: havoc Date: Fri, 2 Aug 2002 14:55:27 +0000 (+0000) Subject: 'sock' local variable isn't needed anymore, cleaned up NET_Shutdown socket closing... X-Git-Tag: RELEASE_0_2_0_RC1~398 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=c091f04ca3df9551e09cb3932ccc851ccf8052cc;p=xonotic%2Fdarkplaces.git 'sock' local variable isn't needed anymore, cleaned up NET_Shutdown socket closing loop git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2162 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/net_main.c b/net_main.c index 9cc14925..90e67f6c 100644 --- a/net_main.c +++ b/net_main.c @@ -737,14 +737,12 @@ NET_Shutdown ==================== */ -void NET_Shutdown (void) +void NET_Shutdown (void) { - qsocket_t *sock; - SetNetTime(); - for (sock = net_activeSockets;sock;sock = net_activeSockets) - NET_Close(sock); + while (net_activeSockets) + NET_Close(net_activeSockets); // // shutdown the drivers