Use MD_NAME and MDCTL_NAME constants where appropriate.

This commit is contained in:
Dima Dorfman 2001-07-18 13:32:38 +00:00
parent e3608b7813
commit 10b0e058bb
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=79863
2 changed files with 5 additions and 3 deletions

View File

@ -282,9 +282,10 @@ mdmaybeload(void)
{
struct module_stat mstat;
int fileid, modid;
const char *name = "md";
const char *name;
char *cp;
name = MD_NAME;
/* scan files in kernel */
mstat.version = sizeof(struct module_stat);
for (fileid = kldnext(0); fileid > 0; fileid = kldnext(fileid)) {

View File

@ -898,7 +898,8 @@ md_drvinit(void *unused)
mdunits, name, len, ptr);
md_preloaded(ptr, len);
}
status_dev = make_dev(&mdctl_cdevsw, 0xffff00ff, UID_ROOT, GID_WHEEL, 0600, "mdctl");
status_dev = make_dev(&mdctl_cdevsw, 0xffff00ff, UID_ROOT, GID_WHEEL,
0600, MDCTL_NAME);
}
static int
@ -922,7 +923,7 @@ md_modevent(module_t mod, int type, void *data)
}
static moduledata_t md_mod = {
"md",
MD_NAME,
md_modevent,
NULL
};