summaryrefslogtreecommitdiffstats
path: root/libexec/bootpd/getether.c
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2000-12-09 09:35:55 +0000
committerobrien <obrien@FreeBSD.org>2000-12-09 09:35:55 +0000
commitc2ee1dcc02035d781d6c70f06df7106979a9f870 (patch)
tree757810dc1fdd19be4c8125ccb9e8beb1aff3d929 /libexec/bootpd/getether.c
parentc174181f432119d1dae3f5e58ecc14c8d7b6f545 (diff)
downloadFreeBSD-src-c2ee1dcc02035d781d6c70f06df7106979a9f870.zip
FreeBSD-src-c2ee1dcc02035d781d6c70f06df7106979a9f870.tar.gz
Add `_PATH_DEVZERO'.
Use _PATH_* where where possible.
Diffstat (limited to 'libexec/bootpd/getether.c')
-rw-r--r--libexec/bootpd/getether.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libexec/bootpd/getether.c b/libexec/bootpd/getether.c
index 8f95a59..071b5fc 100644
--- a/libexec/bootpd/getether.c
+++ b/libexec/bootpd/getether.c
@@ -18,6 +18,7 @@
#endif
#include <ctype.h>
+#include <paths.h>
#include <syslog.h>
#include "getether.h"
@@ -195,7 +196,7 @@ getether(ifname, eap)
char *enaddr;
int unit = -1; /* which unit to attach */
- snprintf(devname, sizeof(devname), "/dev/%s", ifname);
+ snprintf(devname, sizeof(devname), "%s%s", _PATH_DEV, ifname);
fd = open(devname, 2);
if (fd < 0) {
/* Try without the trailing digit. */
OpenPOWER on IntegriCloud