aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2007-10-18 17:31:19 +0000
committerYang Tse <yangsita@gmail.com>2007-10-18 17:31:19 +0000
commitee19b44fe09e001f12cf2e683a5e68d7d4fc52c1 (patch)
tree2c8a123be8d30854f2a40686da4360aa83f07f7a
parent8f0bef2fa04bff0ebfedb090a8cc5566a32f1c44 (diff)
Renamed a variable to avoid shadowing a global declaration
-rw-r--r--ares/ares_init.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/ares/ares_init.c b/ares/ares_init.c
index b5b841f51..c1e10f942 100644
--- a/ares/ares_init.c
+++ b/ares/ares_init.c
@@ -499,7 +499,7 @@ static int get_iphlpapi_dns_info (char *ret_buf, size_t ret_size)
FIXED_INFO *fi = alloca (sizeof(*fi));
DWORD size = sizeof (*fi);
typedef DWORD (WINAPI* get_net_param_func) (FIXED_INFO*, DWORD*);
- get_net_param_func GetNetworkParams; /* available only on Win-98/2000+ */
+ get_net_param_func fpGetNetworkParams; /* available only on Win-98/2000+ */
HMODULE handle;
IP_ADDR_STRING *ipAddr;
int i, count = 0;
@@ -516,16 +516,16 @@ static int get_iphlpapi_dns_info (char *ret_buf, size_t ret_size)
if (!handle)
return (0);
- GetNetworkParams = (get_net_param_func) GetProcAddress (handle, "GetNetworkParams");
- if (!GetNetworkParams)
+ fpGetNetworkParams = (get_net_param_func) GetProcAddress (handle, "GetNetworkParams");
+ if (!fpGetNetworkParams)
goto quit;
- res = (*GetNetworkParams) (fi, &size);
+ res = (*fpGetNetworkParams) (fi, &size);
if ((res != ERROR_BUFFER_OVERFLOW) && (res != ERROR_SUCCESS))
goto quit;
fi = alloca (size);
- if (!fi || (*GetNetworkParams) (fi, &size) != ERROR_SUCCESS)
+ if (!fi || (*fpGetNetworkParams) (fi, &size) != ERROR_SUCCESS)
goto quit;
if (debug)