Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/evbmips Adapt to compiling with -Wcast-qual by addi...



details:   https://anonhg.NetBSD.org/src/rev/27c7a1167c78
branches:  trunk
changeset: 581905:27c7a1167c78
user:      he <he%NetBSD.org@localhost>
date:      Thu Jun 09 21:43:13 2005 +0000

description:
Adapt to compiling with -Wcast-qual by adding consts where appropriate.

diffstat:

 sys/arch/evbmips/evbmips/disksubr.c |  6 +++---
 sys/arch/evbmips/evbmips/yamon.c    |  8 ++++----
 sys/arch/evbmips/include/yamon.h    |  4 ++--
 3 files changed, 9 insertions(+), 9 deletions(-)

diffs (74 lines):

diff -r 1939773629c6 -r 27c7a1167c78 sys/arch/evbmips/evbmips/disksubr.c
--- a/sys/arch/evbmips/evbmips/disksubr.c       Thu Jun 09 21:42:33 2005 +0000
+++ b/sys/arch/evbmips/evbmips/disksubr.c       Thu Jun 09 21:43:13 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: disksubr.c,v 1.7 2003/08/07 16:27:22 agc Exp $ */
+/* $NetBSD: disksubr.c,v 1.8 2005/06/09 21:43:13 he Exp $ */
 
 /*
  * Copyright (c) 1982, 1986, 1988 Regents of the University of California.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: disksubr.c,v 1.7 2003/08/07 16:27:22 agc Exp $");
+__KERNEL_RCSID(0, "$NetBSD: disksubr.c,v 1.8 2005/06/09 21:43:13 he Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -53,7 +53,7 @@
        struct buf *bp;
        struct disklabel *dlp;
        struct dkbad *bdp;
-       char *msg = NULL;
+       const char *msg = NULL;
        int i;
 
        /* minimal requirements for archtypal disk label */
diff -r 1939773629c6 -r 27c7a1167c78 sys/arch/evbmips/evbmips/yamon.c
--- a/sys/arch/evbmips/evbmips/yamon.c  Thu Jun 09 21:42:33 2005 +0000
+++ b/sys/arch/evbmips/evbmips/yamon.c  Thu Jun 09 21:43:13 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: yamon.c,v 1.3 2003/10/27 23:41:42 simonb Exp $ */
+/*     $NetBSD: yamon.c,v 1.4 2005/06/09 21:43:13 he Exp $     */
 
 /*
  * Copyright 2002 Wasabi Systems, Inc.
@@ -38,7 +38,7 @@
 /* XXX move to arch/mips/yamon/yamon.c or similar? */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: yamon.c,v 1.3 2003/10/27 23:41:42 simonb Exp $");
+__KERNEL_RCSID(0, "$NetBSD: yamon.c,v 1.4 2005/06/09 21:43:13 he Exp $");
 
 #include <sys/param.h>
 #include <sys/device.h>
@@ -92,8 +92,8 @@
        YAMON_PRINT_COUNT(&chr, 1);
 }
 
-char *
-yamon_getenv(char *name)
+const char *
+yamon_getenv(const char *name)
 {
        yamon_env_var *yev = yamon_envp;
 
diff -r 1939773629c6 -r 27c7a1167c78 sys/arch/evbmips/include/yamon.h
--- a/sys/arch/evbmips/include/yamon.h  Thu Jun 09 21:42:33 2005 +0000
+++ b/sys/arch/evbmips/include/yamon.h  Thu Jun 09 21:43:13 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: yamon.h,v 1.2 2003/10/27 23:41:42 simonb Exp $ */
+/*     $NetBSD: yamon.h,v 1.3 2005/06/09 21:43:13 he Exp $     */
 
 /*
  * Copyright 2002 Wasabi Systems, Inc.
@@ -86,7 +86,7 @@
 #define        SYSCON_BOARD_BUS_CLOCK_FREQ_ID  35              /* UINT32 */
 #define        SYSCON_BOARD_PCI_FREQ_KHZ_ID    36              /* UINT32 */
 
-char *yamon_getenv(char *);
+const char *yamon_getenv(const char *);
 void yamon_print(char *);
 void yamon_exit(uint32_t);
 int yamon_setcpufreq(int);



Home | Main Index | Thread Index | Old Index