1
0
mirror of https://github.com/simh/simh.git synced 2026-01-25 19:56:25 +00:00

Compiler suggested cleanups

This commit is contained in:
Mark Pizzolato
2012-11-30 13:22:15 -08:00
parent 223e3e0254
commit c6c66487ac
9 changed files with 21 additions and 20 deletions

View File

@@ -1406,7 +1406,7 @@ static void eth_get_nic_hw_addr(ETH_DEV* dev, char *devname)
memset(command, 0, sizeof(command));
for (i=0; patterns[i] && (0 == dev->have_host_nic_phy_addr); ++i) {
snprintf(command, sizeof(command)-1, "ifconfig %s | %s >NIC.hwaddr", devname, patterns[i]);
system(command);
(void)system(command);
if (NULL != (f = fopen("NIC.hwaddr", "r"))) {
while (0 == dev->have_host_nic_phy_addr) {
if (fgets(command, sizeof(command)-1, f)) {