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

md root work on sparc64.
This commit is contained in:
jake 2002-10-13 18:19:22 +00:00
parent c78ac11587
commit 99f37adfdd

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