Make cfroots const.

This commit is contained in:
matt 2003-03-16 08:09:58 +00:00
parent 137a763c9b
commit e86e032c61
2 changed files with 6 additions and 6 deletions

View File

@ -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 @@ __KERNEL_RCSID(0, "$NetBSD: subr_autoconf.c,v 1.83 2003/02/09 09:14:58 jdolecek
* 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 @@ struct cfdata *
config_rootsearch(cfmatch_t fn, const char *rootname, void *aux)
{
struct cfdata *cf;
short *p;
const short *p;
struct matchinfo m;
m.fn = fn;

View File

@ -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 @@ emitroots(FILE *fp)
{
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)