Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arc/arc - add const
details: https://anonhg.NetBSD.org/src/rev/5a2b044c4c6f
branches: trunk
changeset: 581633:5a2b044c4c6f
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Fri Jun 03 12:29:43 2005 +0000
description:
- add const
- fix the second arg of config_rootfound()
diffstat:
sys/arch/arc/arc/autoconf.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diffs (47 lines):
diff -r 5b0266bf3e0c -r 5a2b044c4c6f sys/arch/arc/arc/autoconf.c
--- a/sys/arch/arc/arc/autoconf.c Fri Jun 03 12:29:00 2005 +0000
+++ b/sys/arch/arc/arc/autoconf.c Fri Jun 03 12:29:43 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: autoconf.c,v 1.23 2005/01/22 07:35:33 tsutsui Exp $ */
+/* $NetBSD: autoconf.c,v 1.24 2005/06/03 12:29:43 tsutsui Exp $ */
/* $OpenBSD: autoconf.c,v 1.9 1997/05/18 13:45:20 pefo Exp $ */
/*
@@ -88,7 +88,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.23 2005/01/22 07:35:33 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.24 2005/06/03 12:29:43 tsutsui Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -106,7 +106,7 @@
#include <dev/scsipi/scsiconf.h>
struct bootdev_data {
- char *dev_type;
+ const char *dev_type;
int bus;
int unit;
int partition;
@@ -132,7 +132,7 @@
softintr_init();
(void)splhigh(); /* To be really sure.. */
- if (config_rootfound("mainbus", "mainbus") == NULL)
+ if (config_rootfound("mainbus", NULL) == NULL)
panic("no mainbus found");
/* Configuration is finished, turn on interrupts. */
@@ -154,8 +154,8 @@
}
struct devmap {
- char *attachment;
- char *dev;
+ const char *attachment;
+ const char *dev;
};
/*
Home |
Main Index |
Thread Index |
Old Index