MODINFO_SIZE metadata has type size_t, not unsigned. This makes preloaded

md root work on sparc64.
This commit is contained in:
Jake Burkholder 2002-10-13 18:19:22 +00:00
parent 28dcd19b25
commit 81bb0b95b1

View File

@ -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);