From c2ee1dcc02035d781d6c70f06df7106979a9f870 Mon Sep 17 00:00:00 2001 From: obrien Date: Sat, 9 Dec 2000 09:35:55 +0000 Subject: Add `_PATH_DEVZERO'. Use _PATH_* where where possible. --- sbin/ccdconfig/ccdconfig.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sbin/ccdconfig/ccdconfig.c') 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 #include #include +#include #include #include #include @@ -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); } -- cgit v1.1