diff options
author | obrien <obrien@FreeBSD.org> | 2000-12-09 09:35:55 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2000-12-09 09:35:55 +0000 |
commit | c2ee1dcc02035d781d6c70f06df7106979a9f870 (patch) | |
tree | 757810dc1fdd19be4c8125ccb9e8beb1aff3d929 /sbin/ccdconfig | |
parent | c174181f432119d1dae3f5e58ecc14c8d7b6f545 (diff) | |
download | FreeBSD-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.c | 5 |
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); } |