aboutsummaryrefslogtreecommitdiff
path: root/libexec/bootpd/getether.c
diff options
context:
space:
mode:
Diffstat (limited to 'libexec/bootpd/getether.c')
-rw-r--r--libexec/bootpd/getether.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libexec/bootpd/getether.c b/libexec/bootpd/getether.c
index 071b5fcd40b12..da582e98ebfe8 100644
--- a/libexec/bootpd/getether.c
+++ b/libexec/bootpd/getether.c
@@ -19,6 +19,7 @@
#include <ctype.h>
#include <paths.h>
+#include <string.h>
#include <syslog.h>
#include "getether.h"
@@ -117,13 +118,14 @@ getether(ifname, eap)
#include <net/if_dl.h>
#include <net/if_types.h>
+int
getether(ifname, eap)
char *ifname; /* interface name from ifconfig structure */
char *eap; /* Ether address (output) */
{
int fd, rc = -1;
register int n;
- struct ifreq ibuf[16], ifr;
+ struct ifreq ibuf[16];
struct ifconf ifc;
register struct ifreq *ifrp, *ifend;