aboutsummaryrefslogtreecommitdiff
path: root/sbin/ccdconfig/ccdconfig.c
diff options
context:
space:
mode:
authorDavid E. O'Brien <obrien@FreeBSD.org>2000-12-09 09:35:55 +0000
committerDavid E. O'Brien <obrien@FreeBSD.org>2000-12-09 09:35:55 +0000
commit1a37aa566b347fbb2d2196786e1e84a79ffea9d5 (patch)
treea816cae9543dbb9277a62d68a91416fb2fb33da3 /sbin/ccdconfig/ccdconfig.c
parent2961fc5ac412eec93a03d4badbbf4e01918d864a (diff)
downloadsrc-1a37aa566b347fbb2d2196786e1e84a79ffea9d5.tar.gz
src-1a37aa566b347fbb2d2196786e1e84a79ffea9d5.zip
Add `_PATH_DEVZERO'.
Use _PATH_* where where possible.
Notes
Notes: svn path=/head/; revision=69793
Diffstat (limited to 'sbin/ccdconfig/ccdconfig.c')
-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 9203dccc1b27..aea08be77eeb 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);
}