Fix a maybe-not-so-harmless warning.

This commit is contained in:
Peter Wemm 2001-01-19 09:02:40 +00:00
parent 5e878a541c
commit dc57d7c6dc
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=71234

View file

@ -580,7 +580,7 @@ mdcreate_preload(struct md_ioctl *mdio)
sc->type = MD_PRELOAD;
sc->secsize = DEV_BSIZE;
sc->nsect = mdio->md_size;
sc->pl_ptr = (u_char *)mdio->md_base;
sc->pl_ptr = (u_char *)(uintptr_t)mdio->md_base;
sc->pl_len = (mdio->md_size << DEV_BSHIFT);
mdinit(sc);
return (0);