summaryrefslogtreecommitdiff
path: root/libexec/bootpd
diff options
context:
space:
mode:
authorPaul Traina <pst@FreeBSD.org>1996-01-23 09:44:45 +0000
committerPaul Traina <pst@FreeBSD.org>1996-01-23 09:44:45 +0000
commit4f5241c655fb2bdeccf079691cba33eceb754c83 (patch)
tree21d7f92b73d1a5ef6dacfde4c89c6a5c8cd9c45a /libexec/bootpd
parent4dde4205e1e77bf6f90a2e8da7219bb9ee8b465e (diff)
Notes
Diffstat (limited to 'libexec/bootpd')
-rw-r--r--libexec/bootpd/getif.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/libexec/bootpd/getif.c b/libexec/bootpd/getif.c
index de9f96d29577..c9c08cd0d48a 100644
--- a/libexec/bootpd/getif.c
+++ b/libexec/bootpd/getif.c
@@ -91,13 +91,12 @@ getif(s, addrp)
maxmatch = m;
ifrmax = ifrq;
}
- /* XXX - Could this be just #ifndef IFNAMSIZ instead? -gwr */
-#if (BSD - 0) < 43
+#ifndef IFNAMSIZ
/* BSD not defined or earlier than 4.3 */
incr = sizeof(*ifrq);
-#else /* NetBSD */
+#else
incr = ifrq->ifr_addr.sa_len + IFNAMSIZ;
-#endif /* NetBSD */
+#endif
p += incr;
len -= incr;