summaryrefslogtreecommitdiff
path: root/vm
diff options
context:
space:
mode:
Diffstat (limited to 'vm')
-rw-r--r--vm/vm_resident.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vm/vm_resident.c b/vm/vm_resident.c
index 0d5d650..b23e0f3 100644
--- a/vm/vm_resident.c
+++ b/vm/vm_resident.c
@@ -1098,7 +1098,7 @@ found_em:
if ((addr >= first_phys) &&
(addr < last_phys)) {
- *prevmemp = mem->pageq.next;
+ *prevmemp = (vm_page_t) mem->pageq.next;
pages[(addr - first_phys) >> PAGE_SHIFT] = mem;
mem->free = FALSE;
mem->extcounted = mem->external = external;
@@ -1107,7 +1107,7 @@ found_em:
*/
if (--npages == 0) break;
} else
- prevmemp = &mem->pageq.next;
+ prevmemp = (vm_page_t *) &mem->pageq.next;
mem = (vm_page_t) mem->pageq.next;
}