Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/x68k/dev Make readonly keymap data const.
details: https://anonhg.NetBSD.org/src/rev/786978a4fd91
branches: trunk
changeset: 366428:786978a4fd91
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Thu May 26 14:28:56 2022 +0000
description:
Make readonly keymap data const.
diffstat:
sys/arch/x68k/dev/kbdmap.c | 6 +++---
sys/arch/x68k/dev/kbdmap.c.ascii | 4 ++--
sys/arch/x68k/dev/kbdmap.h | 5 +++--
3 files changed, 8 insertions(+), 7 deletions(-)
diffs (59 lines):
diff -r af7ca583dfd8 -r 786978a4fd91 sys/arch/x68k/dev/kbdmap.c
--- a/sys/arch/x68k/dev/kbdmap.c Thu May 26 14:27:43 2022 +0000
+++ b/sys/arch/x68k/dev/kbdmap.c Thu May 26 14:28:56 2022 +0000
@@ -1,10 +1,10 @@
-/* $NetBSD: kbdmap.c,v 1.7 2007/10/17 19:58:02 garbled Exp $ */
+/* $NetBSD: kbdmap.c,v 1.8 2022/05/26 14:28:56 tsutsui Exp $ */
/* from: arch/amiga/dev/kbdmap.c */
/* modified for X680x0 by Masaru Oki and Makoto MINOURA */
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kbdmap.c,v 1.7 2007/10/17 19:58:02 garbled Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kbdmap.c,v 1.8 2022/05/26 14:28:56 tsutsui Exp $");
#include "kbdmap.h"
@@ -22,7 +22,7 @@
#define D KBD_MODE_DEAD
struct kbdmap kbdmap;
-struct kbdmap ascii_kbdmap = {
+const struct kbdmap ascii_kbdmap = {
/* normal map */
{
{0, 0}, /* 0x00 */
diff -r af7ca583dfd8 -r 786978a4fd91 sys/arch/x68k/dev/kbdmap.c.ascii
--- a/sys/arch/x68k/dev/kbdmap.c.ascii Thu May 26 14:27:43 2022 +0000
+++ b/sys/arch/x68k/dev/kbdmap.c.ascii Thu May 26 14:28:56 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kbdmap.c.ascii,v 1.4 2007/10/17 19:58:02 garbled Exp $ */
+/* $NetBSD: kbdmap.c.ascii,v 1.5 2022/05/26 14:28:56 tsutsui Exp $ */
/* from: arch/amiga/dev/kbdmap.c */
/* modified for X680x0 by Masaru Oki */
@@ -18,7 +18,7 @@
#define K KBD_MODE_KPAD
struct kbdmap kbdmap;
-struct kbdmap ascii_kbdmap = {
+const struct kbdmap ascii_kbdmap = {
/* normal map */
{
0, 0, /* 0x00 */
diff -r af7ca583dfd8 -r 786978a4fd91 sys/arch/x68k/dev/kbdmap.h
--- a/sys/arch/x68k/dev/kbdmap.h Thu May 26 14:27:43 2022 +0000
+++ b/sys/arch/x68k/dev/kbdmap.h Thu May 26 14:28:56 2022 +0000
@@ -1,9 +1,10 @@
-/* $NetBSD: kbdmap.h,v 1.4 2005/12/11 12:19:37 christos Exp $ */
+/* $NetBSD: kbdmap.h,v 1.5 2022/05/26 14:28:56 tsutsui Exp $ */
#include <machine/kbdmap.h>
#ifdef _KERNEL
/* XXX: ITE interface */
-extern struct kbdmap kbdmap, ascii_kbdmap;
+extern struct kbdmap kbdmap;
+extern const struct kbdmap ascii_kbdmap;
extern unsigned char acctable[KBD_NUM_ACC][64];
#endif
Home |
Main Index |
Thread Index |
Old Index