From fd46a0c71173dab9bccebb97ec3600020e7576b0 Mon Sep 17 00:00:00 2001 From: Royce Mitchell III Date: Fri, 25 Jul 2003 23:57:20 +0000 Subject: [PATCH] removed unused variable causing build failure. Also fixed int/ptr comparison warning svn path=/trunk/; revision=5272 --- reactos/lib/iphlpapi/iphlpapi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/lib/iphlpapi/iphlpapi.c b/reactos/lib/iphlpapi/iphlpapi.c index 5e8893bd5f2..9314e85ccd6 100644 --- a/reactos/lib/iphlpapi/iphlpapi.c +++ b/reactos/lib/iphlpapi/iphlpapi.c @@ -184,7 +184,7 @@ GetAdaptersInfo(PIP_ADAPTER_INFO pAdapterInfo, PULONG pOutBufLen) free(strTemp2); continue; } - int n = swprintf(strTemp2, L"SYSTEM\\CurrentControlSet\\Services\\%s", strTemp1); + swprintf(strTemp2, L"SYSTEM\\CurrentControlSet\\Services\\%s", strTemp1); // Open the IpConfig key. lErr = RegOpenKeyExW(HKEY_LOCAL_MACHINE, strTemp2, 0, KEY_READ, &hIpConfig); @@ -222,7 +222,7 @@ GetAdaptersInfo(PIP_ADAPTER_INFO pAdapterInfo, PULONG pOutBufLen) // IP_ADDR_STRING IpAddressList dwSize = 16; lErr = RegQueryValueEx(hIpConfig, _T("IPAddress"), NULL, NULL, (BYTE*) &pCurrentAdapter->IpAddressList.IpAddress, &dwSize); dwSize = 16; lErr = RegQueryValueEx(hIpConfig, _T("SubnetMask"), NULL, NULL, (BYTE*) &pCurrentAdapter->IpAddressList.IpMask, &dwSize); - if(strstr(pCurrentAdapter->IpAddressList.IpAddress.String, "0.0.0.0") != NULL) + if(strstr(pCurrentAdapter->IpAddressList.IpAddress.String, "0.0.0.0") != 0) { dwSize = 16; lErr = RegQueryValueEx(hIpConfig, _T("DhcpIPAddress"), NULL, NULL, (BYTE*) &pCurrentAdapter->IpAddressList.IpAddress, &dwSize); dwSize = 16; lErr = RegQueryValueEx(hIpConfig, _T("DhcpSubnetMask"), NULL, NULL, (BYTE*) &pCurrentAdapter->IpAddressList.IpMask, &dwSize);