projects
/
xonotic
/
darkplaces.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b488fe0
)
'sock' local variable isn't needed anymore, cleaned up NET_Shutdown socket closing...
author
havoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 2 Aug 2002 14:55:27 +0000
(14:55 +0000)
committer
havoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 2 Aug 2002 14:55:27 +0000
(14:55 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2162
d7cf8633
-e32d-0410-b094-
e92efae38249
net_main.c
patch
|
blob
|
history
diff --git
a/net_main.c
b/net_main.c
index 9cc149251d3d1af11d66c36f74e6c92c1040eef8..90e67f6c672d0b34e2c6d8d250c82f7a7112d3d0 100644
(file)
--- 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