mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
Fix some compilation issues.
svn path=/trunk/; revision=16450
This commit is contained in:
parent
b6e80ebb53
commit
8064f8c236
1 changed files with 3 additions and 1 deletions
|
@ -214,6 +214,7 @@ INT Addhost(PTCHAR pszInetAddr, PTCHAR pszEthAddr, PTCHAR pszIfAddr)
|
|||
}
|
||||
} else {
|
||||
Usage();
|
||||
return -1;
|
||||
}
|
||||
|
||||
/* check MAC address */
|
||||
|
@ -255,6 +256,8 @@ INT Addhost(PTCHAR pszInetAddr, PTCHAR pszEthAddr, PTCHAR pszIfAddr)
|
|||
}
|
||||
printf("printing pIpAddrTable->table[0].dwIndex = %lx\n", pIpAddrTable->table[0].dwIndex);
|
||||
pAddHost->dwIndex = 4;
|
||||
|
||||
free(pIpAddrTable);
|
||||
}
|
||||
|
||||
/* Set MAC address to 6 bytes (typical) */
|
||||
|
@ -290,7 +293,6 @@ INT Addhost(PTCHAR pszInetAddr, PTCHAR pszEthAddr, PTCHAR pszIfAddr)
|
|||
return -1;
|
||||
}
|
||||
|
||||
free(pIpAddrTable);
|
||||
free(pAddHost);
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Reference in a new issue