sfd = af->fd;
}
if (sfd < 0) {
- bb_error_msg("No usable address families found.");
+ bb_error_msg("no usable address families found");
}
return sfd;
}
}
if (isdigit(*a) && isdigit(*b)) {
- return atoi(a_ptr) > atoi(b_ptr) ? 1 : -1;
+ return xatoul(a_ptr) > xatoul(b_ptr) ? 1 : -1;
}
return *a - *b;
}
fh = fopen(_PATH_PROCNET_DEV, "r");
if (!fh) {
- bb_perror_msg("Warning: cannot open %s. Limited output.", _PATH_PROCNET_DEV);
+ bb_perror_msg("warning: cannot open %s, limiting output", _PATH_PROCNET_DEV);
return if_readconf();
}
fgets(buf, sizeof buf, fh); /* eat line */
printf("(auto)");
}
#endif
- printf("\n");
+ puts("");
if (ptr->has_ip) {
printf(" %s addr:%s ", ap->name,
default:
printf("Unknown");
}
- printf("\n");
+ puts("");
}
}
fclose(f);
if (ptr->outfill || ptr->keepalive)
printf(" Outfill:%d Keepalive:%d", ptr->outfill, ptr->keepalive);
#endif
- printf("\n");
+ puts("");
/* If needed, display the interface statistics. */
}
if (ptr->map.dma)
printf("DMA chan:%x ", ptr->map.dma);
- printf("\n");
+ puts("");
}
- printf("\n");
+ puts("");
}