diff options
Diffstat (limited to 'libexec/bootpd/getif.c')
-rw-r--r-- | libexec/bootpd/getif.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/libexec/bootpd/getif.c b/libexec/bootpd/getif.c index de9f96d..c9c08cd 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; |