mirror of
https://github.com/moparisthebest/curl
synced 2025-02-28 17:31:46 -05:00
fix compiler warning: declaration of 'err' shadows a previous local
This commit is contained in:
parent
2d77f7cd48
commit
aed98c5125
@ -122,7 +122,7 @@ static CURLcode win32_init(void)
|
||||
#ifdef USE_WINSOCK
|
||||
WORD wVersionRequested;
|
||||
WSADATA wsaData;
|
||||
int err;
|
||||
int res;
|
||||
|
||||
#if defined(ENABLE_IPV6) && (USE_WINSOCK < 2)
|
||||
Error IPV6_requires_winsock2
|
||||
@ -130,9 +130,9 @@ static CURLcode win32_init(void)
|
||||
|
||||
wVersionRequested = MAKEWORD(USE_WINSOCK, USE_WINSOCK);
|
||||
|
||||
err = WSAStartup(wVersionRequested, &wsaData);
|
||||
res = WSAStartup(wVersionRequested, &wsaData);
|
||||
|
||||
if(err != 0)
|
||||
if(res != 0)
|
||||
/* Tell the user that we couldn't find a useable */
|
||||
/* winsock.dll. */
|
||||
return CURLE_FAILED_INIT;
|
||||
|
Loading…
x
Reference in New Issue
Block a user