Module Name: src Committed By: uebayasi Date: Sat Nov 1 07:26:11 UTC 2014
Modified Files: src/usr.bin/config: mkioconf.c Log Message: config(1): Emit pdevinit[] into .rodata To generate a diff of this commit: cvs rdiff -u -r1.26 -r1.27 src/usr.bin/config/mkioconf.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/usr.bin/config/mkioconf.c diff -u src/usr.bin/config/mkioconf.c:1.26 src/usr.bin/config/mkioconf.c:1.27 --- src/usr.bin/config/mkioconf.c:1.26 Sat Nov 1 06:20:24 2014 +++ src/usr.bin/config/mkioconf.c Sat Nov 1 07:26:11 2014 @@ -1,4 +1,4 @@ -/* $NetBSD: mkioconf.c,v 1.26 2014/11/01 06:20:24 uebayasi Exp $ */ +/* $NetBSD: mkioconf.c,v 1.27 2014/11/01 07:26:11 uebayasi Exp $ */ /* * Copyright (c) 1992, 1993 @@ -45,7 +45,7 @@ #endif #include <sys/cdefs.h> -__RCSID("$NetBSD: mkioconf.c,v 1.26 2014/11/01 06:20:24 uebayasi Exp $"); +__RCSID("$NetBSD: mkioconf.c,v 1.27 2014/11/01 07:26:11 uebayasi Exp $"); #include <sys/param.h> #include <err.h> @@ -484,7 +484,7 @@ emitpseudo(FILE *fp) fprintf(fp, "void %sattach(int);\n", i->i_base->d_name); } - fputs("\nstruct pdevinit pdevinit[] = {\n", fp); + fputs("\nconst struct pdevinit pdevinit[] = {\n", fp); TAILQ_FOREACH(i, &allpseudo, i_next) { d = i->i_base; fprintf(fp, "\t{ %sattach, %d },\n",