Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/mipsco/mipsco Add consts to make this build with -W...
details: https://anonhg.NetBSD.org/src/rev/390aa3fb8d49
branches: trunk
changeset: 581897:390aa3fb8d49
user: he <he%NetBSD.org@localhost>
date: Thu Jun 09 13:49:15 2005 +0000
description:
Add consts to make this build with -Wcast-qual.
diffstat:
sys/arch/mipsco/mipsco/disksubr.c | 8 ++++----
sys/arch/mipsco/mipsco/machdep.c | 6 +++---
2 files changed, 7 insertions(+), 7 deletions(-)
diffs (63 lines):
diff -r e8029f2fe7fc -r 390aa3fb8d49 sys/arch/mipsco/mipsco/disksubr.c
--- a/sys/arch/mipsco/mipsco/disksubr.c Thu Jun 09 13:48:12 2005 +0000
+++ b/sys/arch/mipsco/mipsco/disksubr.c Thu Jun 09 13:49:15 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: disksubr.c,v 1.15 2003/08/07 16:28:36 agc Exp $ */
+/* $NetBSD: disksubr.c,v 1.16 2005/06/09 13:49:15 he Exp $ */
/*
* Copyright (c) 1982, 1986, 1988 Regents of the University of California.
@@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: disksubr.c,v 1.15 2003/08/07 16:28:36 agc Exp $");
+__KERNEL_RCSID(0, "$NetBSD: disksubr.c,v 1.16 2005/06/09 13:49:15 he Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -46,7 +46,7 @@
#define b_cylin b_resid
-static char *disklabel_mips_to_bsd __P((struct mips_volheader *,
+static const char *disklabel_mips_to_bsd __P((struct mips_volheader *,
struct disklabel *));
static int disklabel_bsd_to_mips __P((struct disklabel *,
struct mips_volheader *));
@@ -333,7 +333,7 @@
*
* Returns NULL on success, otherwise an error string
*/
-static char *
+static const char *
disklabel_mips_to_bsd(vh, lp)
struct mips_volheader *vh;
struct disklabel *lp;
diff -r e8029f2fe7fc -r 390aa3fb8d49 sys/arch/mipsco/mipsco/machdep.c
--- a/sys/arch/mipsco/mipsco/machdep.c Thu Jun 09 13:48:12 2005 +0000
+++ b/sys/arch/mipsco/mipsco/machdep.c Thu Jun 09 13:49:15 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.43 2005/04/25 15:02:06 lukem Exp $ */
+/* $NetBSD: machdep.c,v 1.44 2005/06/09 13:49:15 he Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -76,7 +76,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.43 2005/04/25 15:02:06 lukem Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.44 2005/06/09 13:49:15 he Exp $");
/* from: Utah Hdr: machdep.c 1.63 91/04/24 */
@@ -250,7 +250,7 @@
char *cp;
int i, howto;
extern char edata[], end[];
- char *bi_msg;
+ const char *bi_msg;
#if NKSYMS || defined(DDB) || defined(LKM)
int nsym = 0;
caddr_t ssym = 0;
Home |
Main Index |
Thread Index |
Old Index