diff options
author | pst <pst@FreeBSD.org> | 1996-01-23 00:57:19 +0000 |
---|---|---|
committer | pst <pst@FreeBSD.org> | 1996-01-23 00:57:19 +0000 |
commit | 6b42e1664561f04b1d3f497ecd5ccad48fd8c3b4 (patch) | |
tree | 23800b651d2f4a82d7c8fd9b4509a80d16dffe7d /libexec/bootpd/trygetif.c | |
parent | 68e1cd350c0146bb7a6af8a084a7eb13d724ec1b (diff) | |
download | FreeBSD-src-6b42e1664561f04b1d3f497ecd5ccad48fd8c3b4.zip FreeBSD-src-6b42e1664561f04b1d3f497ecd5ccad48fd8c3b4.tar.gz |
Minor cleanups from NetBSD-current.
Obtained from: NetBSD
Diffstat (limited to 'libexec/bootpd/trygetif.c')
-rw-r--r-- | libexec/bootpd/trygetif.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libexec/bootpd/trygetif.c b/libexec/bootpd/trygetif.c index c6bb098..894f17b 100644 --- a/libexec/bootpd/trygetif.c +++ b/libexec/bootpd/trygetif.c @@ -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]); |