mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-18 14:23:55 +00:00
Fix a maybe-not-so-harmless warning.
This commit is contained in:
parent
5e878a541c
commit
dc57d7c6dc
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=71234
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue