Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/alpha/alpha Add a const where we cast a const varia...



details:   https://anonhg.NetBSD.org/src/rev/08976487a7ed
branches:  trunk
changeset: 581660:08976487a7ed
user:      jdc <jdc%NetBSD.org@localhost>
date:      Fri Jun 03 15:06:40 2005 +0000

description:
Add a const where we cast a const variable.

diffstat:

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

diffs (27 lines):

diff -r 178ce798e5d0 -r 08976487a7ed sys/arch/alpha/alpha/machdep.c
--- a/sys/arch/alpha/alpha/machdep.c    Fri Jun 03 15:06:06 2005 +0000
+++ b/sys/arch/alpha/alpha/machdep.c    Fri Jun 03 15:06:40 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.285 2005/05/17 04:14:57 christos Exp $ */
+/* $NetBSD: machdep.c,v 1.286 2005/06/03 15:06:40 jdc Exp $ */
 
 /*-
  * Copyright (c) 1998, 1999, 2000 The NetBSD Foundation, Inc.
@@ -75,7 +75,7 @@
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.285 2005/05/17 04:14:57 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.286 2005/06/03 15:06:40 jdc Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -1979,7 +1979,7 @@
                    (gr[_REG_PS] & ALPHA_PSL_USERCLR) != 0)
                        return (EINVAL);
 
-               regtoframe((struct reg *)gr, l->l_md.md_tf);
+               regtoframe((const struct reg *)gr, l->l_md.md_tf);
                if (l == curlwp)
                        alpha_pal_wrusp(gr[_REG_SP]);
                else



Home | Main Index | Thread Index | Old Index