Fix 2nd arg to udev2dev() call in ccd.c

This commit is contained in:
Poul-Henning Kamp 1999-07-17 19:58:37 +00:00
parent d21c632c4b
commit 59c4226d5f
2 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
/* $Id: ccd.c,v 1.48 1999/05/30 16:51:18 phk Exp $ */
/* $Id: ccd.c,v 1.49 1999/06/27 09:28:43 peter Exp $ */
/* $NetBSD: ccd.c,v 1.22 1995/12/08 19:13:26 thorpej Exp $ */
@ -376,7 +376,7 @@ ccdinit(ccd, cpaths, p)
free(cs->sc_cinfo, M_DEVBUF);
return (error);
}
ci->ci_dev = udev2dev(va.va_rdev, 2);
ci->ci_dev = udev2dev(va.va_rdev, vp->v_type == VBLK ? 1 : 0);
/*
* Get partition information for the component.

View File

@ -1,4 +1,4 @@
/* $Id: ccd.c,v 1.48 1999/05/30 16:51:18 phk Exp $ */
/* $Id: ccd.c,v 1.49 1999/06/27 09:28:43 peter Exp $ */
/* $NetBSD: ccd.c,v 1.22 1995/12/08 19:13:26 thorpej Exp $ */
@ -376,7 +376,7 @@ ccdinit(ccd, cpaths, p)
free(cs->sc_cinfo, M_DEVBUF);
return (error);
}
ci->ci_dev = udev2dev(va.va_rdev, 2);
ci->ci_dev = udev2dev(va.va_rdev, vp->v_type == VBLK ? 1 : 0);
/*
* Get partition information for the component.