diff options
| author | uebayasi <uebayasi@NetBSD.org> | 2014-11-01 07:26:11 +0000 |
|---|---|---|
| committer | uebayasi <uebayasi@NetBSD.org> | 2014-11-01 07:26:11 +0000 |
| commit | ebdd6717f38fba2abc3eba312dcf35afa99937eb (patch) | |
| tree | 15983c1c7f6d45a679e1b2afa73d7b36f4eb4c55 /usr.bin | |
| parent | 682ae7d1b238cb0fe776cd61e4038b025fd8663b (diff) | |
config(1): Emit pdevinit[] into .rodata
Diffstat (limited to 'usr.bin')
| -rw-r--r-- | usr.bin/config/mkioconf.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/config/mkioconf.c b/usr.bin/config/mkioconf.c index 6baa8bac83f..6a20338241a 100644 --- a/usr.bin/config/mkioconf.c +++ b/usr.bin/config/mkioconf.c @@ -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", |
