From 3b688725f374fe1812878481c69abab7f412e278 Mon Sep 17 00:00:00 2001 From: peter Date: Fri, 19 Jan 2001 09:02:40 +0000 Subject: 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 f22e269..b918e00 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); -- cgit v1.1