Source-Changes-HG archive

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

[src/trunk]: src Make cfroots const.



details:   https://anonhg.NetBSD.org/src/rev/e1eaa6de4351
branches:  trunk
changeset: 544289:e1eaa6de4351
user:      matt <matt%NetBSD.org@localhost>
date:      Sun Mar 16 08:09:58 2003 +0000

description:
Make cfroots const.

diffstat:

 sys/kern/subr_autoconf.c   |  8 ++++----
 usr.sbin/config/mkioconf.c |  4 ++--
 2 files changed, 6 insertions(+), 6 deletions(-)

diffs (54 lines):

diff -r 8b37cbcdb2aa -r e1eaa6de4351 sys/kern/subr_autoconf.c
--- a/sys/kern/subr_autoconf.c  Sun Mar 16 08:06:51 2003 +0000
+++ b/sys/kern/subr_autoconf.c  Sun Mar 16 08:09:58 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: subr_autoconf.c,v 1.83 2003/02/09 09:14:58 jdolecek Exp $ */
+/* $NetBSD: subr_autoconf.c,v 1.84 2003/03/16 08:10:00 matt Exp $ */
 
 /*
  * Copyright (c) 1996, 2000 Christopher G. Demetriou
@@ -81,7 +81,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: subr_autoconf.c,v 1.83 2003/02/09 09:14:58 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: subr_autoconf.c,v 1.84 2003/03/16 08:10:00 matt Exp $");
 
 #include "opt_ddb.h"
 
@@ -109,7 +109,7 @@
  * devices and drivers are found via these tables.
  */
 extern struct cfdata cfdata[];
-extern short cfroots[];
+extern const short cfroots[];
 
 /*
  * List of all cfdriver structures.  We use this to detect duplicates
@@ -587,7 +587,7 @@
 config_rootsearch(cfmatch_t fn, const char *rootname, void *aux)
 {
        struct cfdata *cf;
-       short *p;
+       const short *p;
        struct matchinfo m;
 
        m.fn = fn;
diff -r 8b37cbcdb2aa -r e1eaa6de4351 usr.sbin/config/mkioconf.c
--- a/usr.sbin/config/mkioconf.c        Sun Mar 16 08:06:51 2003 +0000
+++ b/usr.sbin/config/mkioconf.c        Sun Mar 16 08:09:58 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mkioconf.c,v 1.69 2002/10/09 03:10:19 thorpej Exp $    */
+/*     $NetBSD: mkioconf.c,v 1.70 2003/03/16 08:09:58 matt Exp $       */
 
 /*
  * Copyright (c) 1992, 1993
@@ -490,7 +490,7 @@
 {
        struct devi **p, *i;
 
-       if (fputs("\nshort cfroots[] = {\n", fp) < 0)
+       if (fputs("\nconst short cfroots[] = {\n", fp) < 0)
                return (1);
        for (p = packed; (i = *p) != NULL; p++) {
                if (i->i_at != NULL)



Home | Main Index | Thread Index | Old Index