From dc57d7c6dcbcb10976616073f779182c357aa56c Mon Sep 17 00:00:00 2001 From: Peter Wemm Date: Fri, 19 Jan 2001 09:02:40 +0000 Subject: [PATCH] Fix a maybe-not-so-harmless warning. --- sys/dev/md/md.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/md/md.c b/sys/dev/md/md.c index f22e269f5e4f..b918e00bf6dc 100644 --- a/sys/dev/md/md.c +++ b/sys/dev/md/md.c @@ -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);