summaryrefslogtreecommitdiffstats
path: root/libexec/bootpd
diff options
context:
space:
mode:
authorpst <pst@FreeBSD.org>1996-01-23 00:57:19 +0000
committerpst <pst@FreeBSD.org>1996-01-23 00:57:19 +0000
commit87bb8ce2aa8bacb1dfbc3657c12e8cee7a6555e7 (patch)
treef7b6ba285b3d3588368750e8378e6e2822dfb5ff /libexec/bootpd
parent9c7262c385581a97a804b3e2ccf98aa52c62b398 (diff)
parent6b42e1664561f04b1d3f497ecd5ccad48fd8c3b4 (diff)
downloadFreeBSD-src-87bb8ce2aa8bacb1dfbc3657c12e8cee7a6555e7.zip
FreeBSD-src-87bb8ce2aa8bacb1dfbc3657c12e8cee7a6555e7.tar.gz
This commit was generated by cvs2svn to compensate for changes in r13569,
which included commits to RCS files with non-trunk default branches.
Diffstat (limited to 'libexec/bootpd')
-rw-r--r--libexec/bootpd/dumptab.c2
-rw-r--r--libexec/bootpd/trygetif.c4
2 files changed, 2 insertions, 4 deletions
diff --git a/libexec/bootpd/dumptab.c b/libexec/bootpd/dumptab.c
index 8c049b9..5893f6c 100644
--- a/libexec/bootpd/dumptab.c
+++ b/libexec/bootpd/dumptab.c
@@ -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\
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]);
OpenPOWER on IntegriCloud