diff options
author | Yang Tse <yangsita@gmail.com> | 2007-10-18 17:31:19 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2007-10-18 17:31:19 +0000 |
commit | 0e74c9c8cf60b15a676b13179066c82fca425106 (patch) | |
tree | fb50bdba99b413c4df07d970aeecc223563995ef /ares_init.c | |
parent | 3bac381e3fb44577d68e97c626a82a5d8d84694b (diff) | |
download | c-ares-0e74c9c8cf60b15a676b13179066c82fca425106.tar.gz c-ares-0e74c9c8cf60b15a676b13179066c82fca425106.tar.bz2 c-ares-0e74c9c8cf60b15a676b13179066c82fca425106.zip |
Renamed a variable to avoid shadowing a global declaration
Diffstat (limited to 'ares_init.c')
-rw-r--r-- | ares_init.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ares_init.c b/ares_init.c index b5b841f..c1e10f9 100644 --- a/ares_init.c +++ b/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) |