diff options
author | Andrey Nazarov <skuller@skuller.net> | 2008-09-26 20:08:37 +0000 |
---|---|---|
committer | Andrey Nazarov <skuller@skuller.net> | 2008-09-26 20:08:37 +0000 |
commit | b26baea5a78c8d2487544e3f162d9e4da93121e9 (patch) | |
tree | 8602b0bc5535188c46696cf8490f345a8bb7779f | |
parent | aa597241c1021d9ffee503a48e81fbbfa6141287 (diff) |
Fixed Win32 build.
-rw-r--r-- | source/net_common.c | 7 |
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" ); |