update for dk_establish() proto change
This commit is contained in:
parent
b2ab71db24
commit
6deeeb8a0f
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: disksubr.c,v 1.5 1996/04/12 06:07:25 cgd Exp $ */
|
/* $NetBSD: disksubr.c,v 1.6 1996/04/29 16:34:50 cgd Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1994, 1995, 1996 Carnegie-Mellon University.
|
* Copyright (c) 1994, 1995, 1996 Carnegie-Mellon University.
|
||||||
|
@ -43,7 +43,7 @@
|
||||||
extern struct device *bootdv;
|
extern struct device *bootdv;
|
||||||
|
|
||||||
/* was this the boot device ? */
|
/* was this the boot device ? */
|
||||||
int
|
void
|
||||||
dk_establish(dk, dev)
|
dk_establish(dk, dev)
|
||||||
struct disk *dk;
|
struct disk *dk;
|
||||||
struct device *dev;
|
struct device *dev;
|
||||||
|
@ -57,14 +57,12 @@ dk_establish(dk, dev)
|
||||||
|
|
||||||
if (bp == NULL) {
|
if (bp == NULL) {
|
||||||
printf("no boot path\n");
|
printf("no boot path\n");
|
||||||
return -1;
|
|
||||||
}
|
}
|
||||||
sprintf(name, "%s%d", bp->name, CRAZYMAP(bp->val[0]));
|
sprintf(name, "%s%d", bp->name, CRAZYMAP(bp->val[0]));
|
||||||
if (strcmp(name, dev->dv_xname) == 0) {
|
if (strcmp(name, dev->dv_xname) == 0) {
|
||||||
bootdv = dev;
|
bootdv = dev;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
return 1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in New Issue