missed one
authorMike Karels <karels@ucbvax.Berkeley.EDU>
Wed, 1 Jun 1988 01:22:59 +0000 (17:22 -0800)
committerMike Karels <karels@ucbvax.Berkeley.EDU>
Wed, 1 Jun 1988 01:22:59 +0000 (17:22 -0800)
SCCS-vsn: sys/tahoe/vba/vd.c 1.27

usr/src/sys/tahoe/vba/vd.c

index 31b50f4..48e291c 100644 (file)
@@ -9,7 +9,7 @@
  * software without specific prior written permission. This software
  * is provided ``as is'' without express or implied warranty.
  *
  * software without specific prior written permission. This software
  * is provided ``as is'' without express or implied warranty.
  *
- *     @(#)vd.c        7.1 (Berkeley) %G%
+ *     @(#)vd.c        1.27 (Berkeley) %G%
  */
 
 #include "dk.h"
  */
 
 #include "dk.h"
@@ -861,7 +861,8 @@ vdsofterr(bp, dcb)
        register struct buf *bp;
        register struct dcb *dcb;
 {
        register struct buf *bp;
        register struct dcb *dcb;
 {
-       struct disklabel *lp = &dklabel[vdunit(bp->b_dev)];
+       int unit = vdunit(bp->b_dev);
+       struct disklabel *lp = &dklabel[unit];
        int status = dcb->operrsta;
        int blkdone;
 
        int status = dcb->operrsta;
        int blkdone;