random style fixes (extra spaces deleted)

This commit is contained in:
Denis Vlasenko
2007-03-24 15:40:16 +00:00
parent 644849a3aa
commit 219d14d514
11 changed files with 20 additions and 20 deletions

View File

@@ -188,7 +188,7 @@ static void handlenetoutput(int len)
else if (*p == 0x0d)
outbuf[j++] = 0x00;
}
if (j > 0 )
if (j > 0)
write(G.netfd, outbuf, j);
}

View File

@@ -94,9 +94,11 @@ int arpping(uint32_t yiaddr, uint32_t ip, uint8_t *mac, char *interface)
tm.tv_sec = timeout;
if (select(s + 1, &fdset, (fd_set *) NULL, (fd_set *) NULL, &tm) < 0) {
bb_perror_msg("error on ARPING request");
if (errno != EINTR) rv = 0;
if (errno != EINTR)
rv = 0;
} else if (FD_ISSET(s, &fdset)) {
if (recv(s, &arp, sizeof(arp), 0) < 0 ) rv = 0;
if (recv(s, &arp, sizeof(arp), 0) < 0)
rv = 0;
if (arp.operation == htons(ARPOP_REPLY) &&
memcmp(arp.tHaddr, mac, 6) == 0 &&
*((uint32_t *) arp.sInaddr) == yiaddr) {