diff options
Diffstat (limited to 'source/net_common.c')
-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" ); |