mirror of
https://github.com/reactos/reactos.git
synced 2024-06-29 01:12:06 +00:00
[ARP] Coding style fixes only
This commit is contained in:
parent
e31069738f
commit
5ebde7139a
|
@ -239,8 +239,6 @@ DWORD DisplayArpEntries(PTCHAR pszInetAddr, PTCHAR pszIfAddr)
|
|||
goto cleanup;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* Retrieve the interface-to-ip address mapping
|
||||
* table to get the IP address for adapter */
|
||||
|
||||
|
@ -266,7 +264,6 @@ DWORD DisplayArpEntries(PTCHAR pszInetAddr, PTCHAR pszIfAddr)
|
|||
goto cleanup;
|
||||
}
|
||||
|
||||
|
||||
for (k = 0; k < pIpAddrTable->dwNumEntries; k++)
|
||||
{
|
||||
if (pIpNetTable->table[0].dwIndex == pIpAddrTable->table[k].dwIndex)
|
||||
|
@ -350,6 +347,7 @@ DWORD Addhost(PTCHAR pszInetAddr, PTCHAR pszEthAddr, PTCHAR pszIfAddr)
|
|||
PrintMessageV(10002, pszEthAddr);
|
||||
return ERROR_INVALID_PARAMETER;
|
||||
}
|
||||
|
||||
for (i = 0; i < 17; i++)
|
||||
{
|
||||
if (pszEthAddr[i] == SEPARATOR)
|
||||
|
@ -385,7 +383,6 @@ DWORD Addhost(PTCHAR pszInetAddr, PTCHAR pszEthAddr, PTCHAR pszIfAddr)
|
|||
goto cleanup;
|
||||
}
|
||||
|
||||
|
||||
/* reserve memory on heap and zero */
|
||||
pAddHost = (MIB_IPNETROW *)HeapAlloc(GetProcessHeap(), 0, sizeof(MIB_IPNETROW));
|
||||
if (pAddHost == NULL)
|
||||
|
@ -432,7 +429,6 @@ DWORD Addhost(PTCHAR pszInetAddr, PTCHAR pszEthAddr, PTCHAR pszIfAddr)
|
|||
pAddHost->bPhysAddr[i] = (BYTE)val;
|
||||
}
|
||||
|
||||
|
||||
/* copy converted IP address */
|
||||
pAddHost->dwAddr = dwIpAddr;
|
||||
|
||||
|
@ -532,7 +528,6 @@ DWORD Deletehost(PTCHAR pszInetAddr, PTCHAR pszIfAddr)
|
|||
|
||||
ZeroMemory(pDelHost, sizeof(MIB_IPNETROW));
|
||||
|
||||
|
||||
/* set dwIndex field to the index of a local IP address to
|
||||
* indicate the network on which the ARP entry applies */
|
||||
if (pszIfAddr)
|
||||
|
|
Loading…
Reference in a new issue