Module Name: src
Committed By: tsutsui
Date: Sat Feb 14 13:06:28 UTC 2015
Modified Files:
src/sys/arch/luna68k/stand/boot: kbd.c parse.c
Log Message:
Make local readonly arrays static const.
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/luna68k/stand/boot/kbd.c
cvs rdiff -u -r1.6 -r1.7 src/sys/arch/luna68k/stand/boot/parse.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/luna68k/stand/boot/kbd.c
diff -u src/sys/arch/luna68k/stand/boot/kbd.c:1.3 src/sys/arch/luna68k/stand/boot/kbd.c:1.4
--- src/sys/arch/luna68k/stand/boot/kbd.c:1.3 Sat Feb 14 05:03:09 2015
+++ src/sys/arch/luna68k/stand/boot/kbd.c Sat Feb 14 13:06:28 2015
@@ -1,4 +1,4 @@
-/* $NetBSD: kbd.c,v 1.3 2015/02/14 05:03:09 tsutsui Exp $ */
+/* $NetBSD: kbd.c,v 1.4 2015/02/14 13:06:28 tsutsui Exp $ */
/*
* Copyright (c) 1992 OMRON Corporation.
@@ -79,7 +79,7 @@
#include <luna68k/stand/boot/samachdep.h>
#include <luna68k/stand/boot/kbdreg.h>
-struct kbd_keymap kbd_keymap[] = {
+static const struct kbd_keymap kbd_keymap[] = {
{ KC_IGNORE, { 0, 0 } }, /* 0 [0x00] */
{ KC_IGNORE, { 0, 0 } }, /* 1 [0x01] */
{ KC_IGNORE, { 0, 0 } }, /* 2 [0x02] */
Index: src/sys/arch/luna68k/stand/boot/parse.c
diff -u src/sys/arch/luna68k/stand/boot/parse.c:1.6 src/sys/arch/luna68k/stand/boot/parse.c:1.7
--- src/sys/arch/luna68k/stand/boot/parse.c:1.6 Sat Jan 11 15:51:02 2014
+++ src/sys/arch/luna68k/stand/boot/parse.c Sat Feb 14 13:06:28 2015
@@ -1,4 +1,4 @@
-/* $NetBSD: parse.c,v 1.6 2014/01/11 15:51:02 tsutsui Exp $ */
+/* $NetBSD: parse.c,v 1.7 2015/02/14 13:06:28 tsutsui Exp $ */
/*
* Copyright (c) 1992 OMRON Corporation.
@@ -130,7 +130,7 @@ struct command_entry {
int (*func)(int, char **);
};
-struct command_entry entries[] = {
+static const struct command_entry entries[] = {
{ "b", boot },
{ "boot", boot },
{ "chkargs", check_args },