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

@@ -880,8 +880,7 @@ static void reload_signal(int sig ATTRIBUTE_UNUSED)
/* remove unused entrys */
for (a = init_action_list; a; a = tmp) {
tmp = a->next;
if (a->action & (ONCE | SYSINIT | WAIT ) &&
a->pid == 0 ) {
if ((a->action & (ONCE | SYSINIT | WAIT)) && a->pid == 0) {
delete_init_action(a);
}
}

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) {

View File

@@ -46,7 +46,7 @@ int free_main(int argc, char **argv)
info.bufferram*=info.mem_unit;
}
if (argc > 1 && **(argv + 1) == '-')
if (argc > 1 && *argv[1] == '-')
bb_show_usage();
printf("%6s%13s%13s%13s%13s%13s\n", "", "total", "used", "free",
@@ -66,4 +66,3 @@ int free_main(int argc, char **argv)
#endif
return EXIT_SUCCESS;
}