summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Bushnell <thomas@gnu.org>1999-07-06 00:08:33 +0000
committerThomas Bushnell <thomas@gnu.org>1999-07-06 00:08:33 +0000
commit54e27a2c14b9d650249876ce1f1c85c07a997d03 (patch)
tree53c49ebdba18d2ca6b676b26f2713d4bed4c323c
parent84c05469b0378c17726a054d7486943ef197b423 (diff)
Mon Jul 5 20:04:06 1999 Thomas Bushnell, BSG <tb@mit.edu>
* boot.c (load_image): Fix typo in cast. Reported by Yamashita TAKAO <jargon@lares.dti.ne.jp>.
-rw-r--r--boot/ChangeLog5
-rw-r--r--boot/boot.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/boot/ChangeLog b/boot/ChangeLog
index 0dfa5592..ad8a304c 100644
--- a/boot/ChangeLog
+++ b/boot/ChangeLog
@@ -1,3 +1,8 @@
+Mon Jul 5 20:04:06 1999 Thomas Bushnell, BSG <tb@mit.edu>
+
+ * boot.c (load_image): Fix typo in cast. Reported by Yamashita
+ TAKAO <jargon@lares.dti.ne.jp>.
+
1999-07-03 Thomas Bushnell, BSG <tb@mit.edu>
* boot.c (load_image): Use munmap instead of vm_deallocate when
diff --git a/boot/boot.c b/boot/boot.c
index ce81c87c..35b181b7 100644
--- a/boot/boot.c
+++ b/boot/boot.c
@@ -244,7 +244,7 @@ load_image (task_t t,
vm_allocate (t, (vm_address_t*)&ph->p_vaddr, ph->p_memsz, 0);
vm_write (t, ph->p_vaddr, buf, bufsz);
- munmap ((caddr_h) buf, bufsz);
+ munmap ((caddr_t) buf, bufsz);
vm_protect (t, ph->p_vaddr, ph->p_memsz, 0,
((ph->p_flags & PF_R) ? VM_PROT_READ : 0) |
((ph->p_flags & PF_W) ? VM_PROT_WRITE : 0) |