Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/config config(1): Emit pdevinit[] into .rodata



details:   https://anonhg.NetBSD.org/src/rev/a8b76b4dcfd3
branches:  trunk
changeset: 333392:a8b76b4dcfd3
user:      uebayasi <uebayasi%NetBSD.org@localhost>
date:      Sat Nov 01 07:26:11 2014 +0000

description:
config(1): Emit pdevinit[] into .rodata

diffstat:

 usr.bin/config/mkioconf.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r b538e631141e -r a8b76b4dcfd3 usr.bin/config/mkioconf.c
--- a/usr.bin/config/mkioconf.c Sat Nov 01 06:20:24 2014 +0000
+++ b/usr.bin/config/mkioconf.c Sat Nov 01 07:26:11 2014 +0000
@@ -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 @@
                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",



Home | Main Index | Thread Index | Old Index