summaryrefslogtreecommitdiffstats
path: root/sys/dev/md/md.c
diff options
context:
space:
mode:
authorjake <jake@FreeBSD.org>2002-10-13 18:19:22 +0000
committerjake <jake@FreeBSD.org>2002-10-13 18:19:22 +0000
commit99f37adfddbada3d9c82cb345657e0e695adb605 (patch)
tree804500ab697763863ada5fadc4ddf7cf08313a65 /sys/dev/md/md.c
parentc78ac1158768ea6c926aaf87ccac4684a9bbdbab (diff)
downloadFreeBSD-src-99f37adfddbada3d9c82cb345657e0e695adb605.zip
FreeBSD-src-99f37adfddbada3d9c82cb345657e0e695adb605.tar.gz
MODINFO_SIZE metadata has type size_t, not unsigned. This makes preloaded
md root work on sparc64.
Diffstat (limited to 'sys/dev/md/md.c')
-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 7836ced..e26ef4c 100644
--- a/sys/dev/md/md.c
+++ b/sys/dev/md/md.c
@@ -1095,7 +1095,7 @@ md_drvinit(void *unused)
c = preload_search_info(mod, MODINFO_ADDR);
ptr = *(u_char **)c;
c = preload_search_info(mod, MODINFO_SIZE);
- len = *(unsigned *)c;
+ len = *(size_t *)c;
printf("%s%d: Preloaded image <%s> %d bytes at %p\n",
MD_NAME, mdunits, name, len, ptr);
md_preloaded(ptr, len);
OpenPOWER on IntegriCloud