diff options
author | jake <jake@FreeBSD.org> | 2002-10-13 18:19:22 +0000 |
---|---|---|
committer | jake <jake@FreeBSD.org> | 2002-10-13 18:19:22 +0000 |
commit | 99f37adfddbada3d9c82cb345657e0e695adb605 (patch) | |
tree | 804500ab697763863ada5fadc4ddf7cf08313a65 /sys/dev/md | |
parent | c78ac1158768ea6c926aaf87ccac4684a9bbdbab (diff) | |
download | FreeBSD-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')
-rw-r--r-- | sys/dev/md/md.c | 2 |
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); |