Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/luna68k/stand/boot Make local readonly arrays stati...
details: https://anonhg.NetBSD.org/src/rev/511c3fa6194f
branches: trunk
changeset: 336144:511c3fa6194f
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Sat Feb 14 13:06:28 2015 +0000
description:
Make local readonly arrays static const.
diffstat:
sys/arch/luna68k/stand/boot/kbd.c | 4 ++--
sys/arch/luna68k/stand/boot/parse.c | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r cf9798c2f1f8 -r 511c3fa6194f sys/arch/luna68k/stand/boot/kbd.c
--- a/sys/arch/luna68k/stand/boot/kbd.c Sat Feb 14 13:02:38 2015 +0000
+++ b/sys/arch/luna68k/stand/boot/kbd.c Sat Feb 14 13:06:28 2015 +0000
@@ -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] */
diff -r cf9798c2f1f8 -r 511c3fa6194f sys/arch/luna68k/stand/boot/parse.c
--- a/sys/arch/luna68k/stand/boot/parse.c Sat Feb 14 13:02:38 2015 +0000
+++ b/sys/arch/luna68k/stand/boot/parse.c Sat Feb 14 13:06:28 2015 +0000
@@ -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 @@
int (*func)(int, char **);
};
-struct command_entry entries[] = {
+static const struct command_entry entries[] = {
{ "b", boot },
{ "boot", boot },
{ "chkargs", check_args },
Home |
Main Index |
Thread Index |
Old Index