summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Nazarov <skuller@skuller.net>2008-09-26 20:08:37 +0000
committerAndrey Nazarov <skuller@skuller.net>2008-09-26 20:08:37 +0000
commitb26baea5a78c8d2487544e3f162d9e4da93121e9 (patch)
tree8602b0bc5535188c46696cf8490f345a8bb7779f
parentaa597241c1021d9ffee503a48e81fbbfa6141287 (diff)
Fixed Win32 build.
-rw-r--r--source/net_common.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source/net_common.c b/source/net_common.c
index a92ee9a..3fbd1ec 100644
--- a/source/net_common.c
+++ b/source/net_common.c
@@ -1288,10 +1288,11 @@ NET_Init
void NET_Init( void ) {
#ifdef _WIN32
WSADATA ws;
+ int ret;
- i = WSAStartup( MAKEWORD( 1, 1 ), &ws );
- if( i ) {
- Com_Error( ERR_FATAL, "Winsock initialization failed, returned %d", i );
+ ret = WSAStartup( MAKEWORD( 1, 1 ), &ws );
+ if( ret ) {
+ Com_Error( ERR_FATAL, "Winsock initialization failed, returned %d", ret );
}
Com_DPrintf( "Winsock Initialized\n" );