mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
Minor cleanups from NetBSD-current.
Obtained from: NetBSD
This commit is contained in:
parent
f92a999ac6
commit
ee3ee9eeaa
2 changed files with 2 additions and 4 deletions
|
|
@ -59,7 +59,7 @@ dumptab(filename)
|
|||
int n;
|
||||
struct host *hp;
|
||||
FILE *fp;
|
||||
long t;
|
||||
time_t t;
|
||||
/* Print symbols in alphabetical order for reader's convenience. */
|
||||
static char legend[] = "#\n# Legend:\t(see bootptab.5)\n\
|
||||
#\tfirst field -- hostname (not indented)\n\
|
||||
|
|
|
|||
|
|
@ -39,9 +39,7 @@ main(argc, argv)
|
|||
dap = NULL;
|
||||
if (argc > 1) {
|
||||
dap = &dst_addr;
|
||||
if (isdigit(argv[1][0]))
|
||||
dst_addr.s_addr = inet_addr(argv[1]);
|
||||
else {
|
||||
if (inet_aton(argv[1], &dst_addr) == 0) {
|
||||
hep = gethostbyname(argv[1]);
|
||||
if (!hep) {
|
||||
printf("gethostbyname(%s)\n", argv[1]);
|
||||
|
|
|
|||
Loading…
Reference in a new issue