summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>2002-09-28 14:17:24 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>2002-09-28 14:17:24 +0000
commit1cff889a46af31b5a6aba00c84e6534b89740e49 (patch)
tree4a82a7b9e2e732c1d5b7dbd5f698cc00dda40012
parent7b831242550e707639871dda4490932fa4ed36fc (diff)
Notes
-rw-r--r--sys/dev/md/md.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/md/md.c b/sys/dev/md/md.c
index 6b5431c792ff..ae1953d72c5e 100644
--- a/sys/dev/md/md.c
+++ b/sys/dev/md/md.c
@@ -1034,7 +1034,7 @@ mdctlioctl(dev_t dev, u_long cmd, caddr_t addr, int flags, struct thread *td)
break;
case MD_PRELOAD:
mdio->md_size = sc->nsect;
- (u_char *)(uintptr_t)mdio->md_base = sc->pl_ptr;
+ mdio->md_base = (uint64_t)(intptr_t)sc->pl_ptr;
break;
case MD_SWAP:
mdio->md_size = sc->nsect * (PAGE_SIZE / DEV_BSIZE);