Make local readonly arrays static const.
This commit is contained in:
parent
392ee9f315
commit
908d6ff293
|
@ -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] */
|
||||
|
|
|
@ -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 },
|
||||
|
|
Loading…
Reference in New Issue