Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/hp300/dev Cast the result of VM_DEFAULT_ADDRESS to ...



details:   https://anonhg.NetBSD.org/src/rev/5b0f6e7cef1a
branches:  trunk
changeset: 543343:5b0f6e7cef1a
user:      he <he%NetBSD.org@localhost>
date:      Sun Feb 23 19:08:18 2003 +0000

description:
Cast the result of VM_DEFAULT_ADDRESS to caddr_t, to make this compile again.

diffstat:

 sys/arch/hp300/dev/grf.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r 84d90f6a4165 -r 5b0f6e7cef1a sys/arch/hp300/dev/grf.c
--- a/sys/arch/hp300/dev/grf.c  Sun Feb 23 18:47:10 2003 +0000
+++ b/sys/arch/hp300/dev/grf.c  Sun Feb 23 19:08:18 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: grf.c,v 1.50 2003/02/20 22:16:05 atatat Exp $  */
+/*     $NetBSD: grf.c,v 1.51 2003/02/23 19:08:18 he Exp $      */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -49,7 +49,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: grf.c,v 1.50 2003/02/20 22:16:05 atatat Exp $");
+__KERNEL_RCSID(0, "$NetBSD: grf.c,v 1.51 2003/02/23 19:08:18 he Exp $");
 
 #include "opt_compat_hpux.h"
 
@@ -628,7 +628,8 @@
        if (*addrp)
                flags |= MAP_FIXED;
        else
-               *addrp = VM_DEFAULT_ADDRESS(p->p_vmspace->vm_daddr, len)
+               *addrp = (caddr_t)
+                   VM_DEFAULT_ADDRESS(p->p_vmspace->vm_daddr, len);
        vn.v_type = VCHR;                       /* XXX */
        vn.v_specinfo = &si;                    /* XXX */
        vn.v_rdev = dev;                        /* XXX */



Home | Main Index | Thread Index | Old Index