summaryrefslogtreecommitdiffstats
path: root/libexec/bootpd/getether.c
diff options
context:
space:
mode:
authoriedowse <iedowse@FreeBSD.org>2001-09-29 11:37:13 +0000
committeriedowse <iedowse@FreeBSD.org>2001-09-29 11:37:13 +0000
commit4ca6bf57c4e042ed40d2806a78f9728d98a4b04a (patch)
tree5400fa5975d5427f80bd2a3b7675089dba0f5bc3 /libexec/bootpd/getether.c
parent85a8a3eb9ca2c3a9e08e96dc7fde3f7f2f23748b (diff)
downloadFreeBSD-src-4ca6bf57c4e042ed40d2806a78f9728d98a4b04a.zip
FreeBSD-src-4ca6bf57c4e042ed40d2806a78f9728d98a4b04a.tar.gz
Avoid a few compiler warnings (printf codes, missing includes etc).
PR: bin/30864 Obtained from: Dan Lukes <dan@obluda.cz> MFC after: 1 week
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 071b5fc..da582e9 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;
OpenPOWER on IntegriCloud