From: Ben Gras Date: Mon, 5 Oct 2009 16:41:28 +0000 (+0000) Subject: fix compiler warnings using dubious casts. X-Git-Tag: v3.1.5~25 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/zpipe.c?a=commitdiff_plain;h=45ae52aec0369cd51e50ba63d6b83c23d571de58;p=minix.git fix compiler warnings using dubious casts. --- diff --git a/lib/syslib/vm_umap.c b/lib/syslib/vm_umap.c index 73db2fc0d..abc8285f8 100644 --- a/lib/syslib/vm_umap.c +++ b/lib/syslib/vm_umap.c @@ -12,10 +12,10 @@ PUBLIC int vm_umap(int seg, vir_bytes offset, vir_bytes len, phys_bytes *addr) int result; m.VMU_SEG = seg; - m.VMU_OFFSET = offset; - m.VMU_LENGTH = len; + m.VMU_OFFSET = (char *) offset; + m.VMU_LENGTH = (char *) len; result = _taskcall(VM_PROC_NR, VM_UMAP, &m); - *addr = m.VMU_RETADDR; + *addr = (phys_bytes) m.VMU_RETADDR; return result; }