Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/mac68k/dev Add missing cast (to make it compilable)



details:   https://anonhg.NetBSD.org/src/rev/72c3fba0e889
branches:  trunk
changeset: 326468:72c3fba0e889
user:      martin <martin%NetBSD.org@localhost>
date:      Thu Jan 30 13:04:06 2014 +0000

description:
Add missing cast (to make it compilable)

diffstat:

 sys/arch/mac68k/dev/grf_compat.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 8cee559e670e -r 72c3fba0e889 sys/arch/mac68k/dev/grf_compat.c
--- a/sys/arch/mac68k/dev/grf_compat.c  Thu Jan 30 06:49:16 2014 +0000
+++ b/sys/arch/mac68k/dev/grf_compat.c  Thu Jan 30 13:04:06 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: grf_compat.c,v 1.23 2014/01/26 00:08:48 christos Exp $ */
+/*     $NetBSD: grf_compat.c,v 1.24 2014/01/30 13:04:06 martin Exp $   */
 
 /*
  * Copyright (C) 1999 Scott Reynolds
@@ -34,7 +34,7 @@
 #include "opt_grf_compat.h"
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: grf_compat.c,v 1.23 2014/01/26 00:08:48 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: grf_compat.c,v 1.24 2014/01/30 13:04:06 martin Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -316,7 +316,7 @@
 
        len = m68k_round_page(sc->sc_dc->dc_offset + sc->sc_dc->dc_size);
        *addrp = (void *)p->p_emul->e_vm_default_addr(p,
-           p->p_vmspace->vm_daddr, len);
+           (vaddr_t)p->p_vmspace->vm_daddr, len);
        flags = MAP_SHARED | MAP_FIXED;
 
        vn.v_type = VCHR;               /* XXX */



Home | Main Index | Thread Index | Old Index