summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sicontrol
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 /usr.sbin/sicontrol
parentc174181f432119d1dae3f5e58ecc14c8d7b6f545 (diff)
downloadFreeBSD-src-c2ee1dcc02035d781d6c70f06df7106979a9f870.zip
FreeBSD-src-c2ee1dcc02035d781d6c70f06df7106979a9f870.tar.gz
Add `_PATH_DEVZERO'.
Use _PATH_* where where possible.
Diffstat (limited to 'usr.sbin/sicontrol')
-rw-r--r--usr.sbin/sicontrol/sicontrol.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/sicontrol/sicontrol.c b/usr.sbin/sicontrol/sicontrol.c
index 88e1770..eb6560f 100644
--- a/usr.sbin/sicontrol/sicontrol.c
+++ b/usr.sbin/sicontrol/sicontrol.c
@@ -39,6 +39,7 @@ static const char rcsid[] =
#include <ctype.h>
#include <err.h>
#include <fcntl.h>
+#include <paths.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -156,7 +157,7 @@ main(int argc, char **argv)
if (strchr(Devname, '/') == NULL) {
char *acp = malloc(6 + strlen(Devname));
- strcpy(acp, "/dev/");
+ strcpy(acp, _PATH_DEV);
strcat(acp, Devname);
Devname = acp;
}
OpenPOWER on IntegriCloud