Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/powerpc Appease -Wcast-qual



details:   https://anonhg.NetBSD.org/src/rev/49abffeccc3f
branches:  trunk
changeset: 581625:49abffeccc3f
user:      scw <scw%NetBSD.org@localhost>
date:      Fri Jun 03 11:55:34 2005 +0000

description:
Appease -Wcast-qual

diffstat:

 sys/arch/powerpc/fpu/fpu_emu.c |  6 +++---
 sys/arch/powerpc/ibm4xx/intr.c |  8 ++++----
 2 files changed, 7 insertions(+), 7 deletions(-)

diffs (63 lines):

diff -r b7521a0f5d56 -r 49abffeccc3f sys/arch/powerpc/fpu/fpu_emu.c
--- a/sys/arch/powerpc/fpu/fpu_emu.c    Fri Jun 03 11:54:48 2005 +0000
+++ b/sys/arch/powerpc/fpu/fpu_emu.c    Fri Jun 03 11:55:34 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fpu_emu.c,v 1.12 2004/09/15 07:04:21 scw Exp $ */
+/*     $NetBSD: fpu_emu.c,v 1.13 2005/06/03 11:55:34 scw Exp $ */
 
 /*
  * Copyright 2001 Wasabi Systems, Inc.
@@ -76,7 +76,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fpu_emu.c,v 1.12 2004/09/15 07:04:21 scw Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fpu_emu.c,v 1.13 2005/06/03 11:55:34 scw Exp $");
 
 #include "opt_ddb.h"
 
@@ -157,7 +157,7 @@
 void
 fpu_dumpfpn(struct fpn *fp)
 {
-       static char *class[] = {
+       static const char *class[] = {
                "SNAN", "QNAN", "ZERO", "NUM", "INF"
        };
 
diff -r b7521a0f5d56 -r 49abffeccc3f sys/arch/powerpc/ibm4xx/intr.c
--- a/sys/arch/powerpc/ibm4xx/intr.c    Fri Jun 03 11:54:48 2005 +0000
+++ b/sys/arch/powerpc/ibm4xx/intr.c    Fri Jun 03 11:55:34 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: intr.c,v 1.6 2003/07/15 02:54:43 lukem Exp $   */
+/*     $NetBSD: intr.c,v 1.7 2005/06/03 11:58:02 scw Exp $     */
 
 /*
  * Copyright 2002 Wasabi Systems, Inc.
@@ -36,7 +36,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: intr.c,v 1.6 2003/07/15 02:54:43 lukem Exp $");
+__KERNEL_RCSID(0, "$NetBSD: intr.c,v 1.7 2005/06/03 11:58:02 scw Exp $");
 
 #include <sys/param.h>
 #include <sys/malloc.h>
@@ -64,7 +64,7 @@
 static inline void disable_irq(int irq);
 static inline void enable_irq(int irq);
 static void intr_calculatemasks(void);
-static char *intr_typename(int);
+static const char *intr_typename(int);
 
 static int fakeintr(void *);
 static inline int cntlzw(int);
@@ -182,7 +182,7 @@
 #endif
 }
 
-static char *
+static const char *
 intr_typename(int type)
 {
 



Home | Main Index | Thread Index | Old Index