diff options
author | Flavio Cruz <flaviocruz@gmail.com> | 2015-12-31 19:08:19 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2016-01-01 17:09:06 +0100 |
commit | eb8c15953a316a780f2ea6c8d1eb47c878909d94 (patch) | |
tree | 00600d1e5427e5b3651e6aca812a0efdd6ed90a5 /kern | |
parent | 130c43f6da56e9ed1d9f954975ceeeec66c1d2eb (diff) |
fix some compiler warnings in gnumach
* linux/dev/glue/block.c (out): Cast to device_t.
* linux/dev/init/main.c (alloc_contig_mem): Initialize addr and cast return value to void *.
* i386/i386/phys.c (pmap_copy_page): Initialize src_map.
* i386/intel/pmap.c: Include i386at/model_dep.h.
* kern/mach_clock.c (mapable_time_init): Cast to void *.
Diffstat (limited to 'kern')
-rw-r--r-- | kern/mach_clock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kern/mach_clock.c b/kern/mach_clock.c index c6e2d9d..1817ce2 100644 --- a/kern/mach_clock.c +++ b/kern/mach_clock.c @@ -539,7 +539,7 @@ void mapable_time_init(void) if (kmem_alloc_wired(kernel_map, (vm_offset_t *) &mtime, PAGE_SIZE) != KERN_SUCCESS) panic("mapable_time_init"); - memset(mtime, 0, PAGE_SIZE); + memset((void *) mtime, 0, PAGE_SIZE); update_mapped_time(&time); } |