update for dk_establish() proto change

This commit is contained in:
cgd 1996-04-29 16:34:50 +00:00
parent b2ab71db24
commit 6deeeb8a0f
1 changed files with 2 additions and 4 deletions

View File

@ -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.
@ -43,7 +43,7 @@
extern struct device *bootdv;
/* was this the boot device ? */
int
void
dk_establish(dk, dev)
struct disk *dk;
struct device *dev;
@ -57,14 +57,12 @@ dk_establish(dk, dev)
if (bp == NULL) {
printf("no boot path\n");
return -1;
}
sprintf(name, "%s%d", bp->name, CRAZYMAP(bp->val[0]));
if (strcmp(name, dev->dv_xname) == 0) {
bootdv = dev;
}
#endif
return 1;
}
/*