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 */ /* remove unused entrys */
for (a = init_action_list; a; a = tmp) { for (a = init_action_list; a; a = tmp) {
tmp = a->next; tmp = a->next;
if (a->action & (ONCE | SYSINIT | WAIT ) && if ((a->action & (ONCE | SYSINIT | WAIT)) && a->pid == 0) {
a->pid == 0 ) {
delete_init_action(a); 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; tm.tv_sec = timeout;
if (select(s + 1, &fdset, (fd_set *) NULL, (fd_set *) NULL, &tm) < 0) { if (select(s + 1, &fdset, (fd_set *) NULL, (fd_set *) NULL, &tm) < 0) {
bb_perror_msg("error on ARPING request"); bb_perror_msg("error on ARPING request");
if (errno != EINTR) rv = 0; if (errno != EINTR)
rv = 0;
} else if (FD_ISSET(s, &fdset)) { } 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) && if (arp.operation == htons(ARPOP_REPLY) &&
memcmp(arp.tHaddr, mac, 6) == 0 && memcmp(arp.tHaddr, mac, 6) == 0 &&
*((uint32_t *) arp.sInaddr) == yiaddr) { *((uint32_t *) arp.sInaddr) == yiaddr) {

View File

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