summaryrefslogtreecommitdiffstats
path: root/sbin/ccdconfig
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 /sbin/ccdconfig
parentc174181f432119d1dae3f5e58ecc14c8d7b6f545 (diff)
downloadFreeBSD-src-c2ee1dcc02035d781d6c70f06df7106979a9f870.zip
FreeBSD-src-c2ee1dcc02035d781d6c70f06df7106979a9f870.tar.gz
Add `_PATH_DEVZERO'.
Use _PATH_* where where possible.
Diffstat (limited to 'sbin/ccdconfig')
-rw-r--r--sbin/ccdconfig/ccdconfig.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sbin/ccdconfig/ccdconfig.c b/sbin/ccdconfig/ccdconfig.c
index 9203dcc..aea08be 100644
--- a/sbin/ccdconfig/ccdconfig.c
+++ b/sbin/ccdconfig/ccdconfig.c
@@ -48,6 +48,7 @@ static const char rcsid[] =
#include <fcntl.h>
#include <kvm.h>
#include <limits.h>
+#include <paths.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -444,9 +445,9 @@ resolve_ccdname(name)
free(path);
return (NULL);
}
- (void)sprintf(path, "/dev/%s%c", name, 'a' + rawpart);
+ (void)sprintf(path, "%s%s%c", _PATH_DEV, name, 'a' + rawpart);
} else
- (void)sprintf(path, "/dev/%s", name);
+ (void)sprintf(path, "%s%s", _PATH_DEV, name);
return (path);
}
OpenPOWER on IntegriCloud