Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/amiga/amiga Cast vstart to (struct user *) when ass...



details:   https://anonhg.NetBSD.org/src/rev/97e17abd5b84
branches:  trunk
changeset: 749332:97e17abd5b84
user:      phx <phx%NetBSD.org@localhost>
date:      Thu Nov 26 18:23:48 2009 +0000

description:
Cast vstart to (struct user *) when assigning it to lwp0.l_addr.

diffstat:

 sys/arch/amiga/amiga/amiga_init.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 977bbdac6dd6 -r 97e17abd5b84 sys/arch/amiga/amiga/amiga_init.c
--- a/sys/arch/amiga/amiga/amiga_init.c Thu Nov 26 17:36:22 2009 +0000
+++ b/sys/arch/amiga/amiga/amiga_init.c Thu Nov 26 18:23:48 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: amiga_init.c,v 1.112 2009/11/26 00:19:12 matt Exp $    */
+/*     $NetBSD: amiga_init.c,v 1.113 2009/11/26 18:23:48 phx Exp $     */
 
 /*
  * Copyright (c) 1994 Michael L. Hitch
@@ -36,7 +36,7 @@
 #include "opt_devreload.h"
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: amiga_init.c,v 1.112 2009/11/26 00:19:12 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: amiga_init.c,v 1.113 2009/11/26 18:23:48 phx Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -353,7 +353,7 @@
        /*
         * save KVA of lwp0 u-area and allocate it.
         */
-       RELOC(lwp0.l_addr, struct user *) = vstart;
+       RELOC(lwp0.l_addr, struct user *) = (struct user *)vstart;
        pstart += USPACE;
        vstart += USPACE;
        avail -= USPACE;



Home | Main Index | Thread Index | Old Index