Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/hp300/dev Add const.



details:   https://anonhg.NetBSD.org/src/rev/fbeafea912c3
branches:  trunk
changeset: 581569:fbeafea912c3
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Thu Jun 02 16:00:16 2005 +0000

description:
Add const.

diffstat:

 sys/arch/hp300/dev/hil_keymaps.c |  6 +++---
 sys/arch/hp300/dev/kbdmap.h      |  6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diffs (51 lines):

diff -r f9169b6b5d4f -r fbeafea912c3 sys/arch/hp300/dev/hil_keymaps.c
--- a/sys/arch/hp300/dev/hil_keymaps.c  Thu Jun 02 15:55:49 2005 +0000
+++ b/sys/arch/hp300/dev/hil_keymaps.c  Thu Jun 02 16:00:16 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: hil_keymaps.c,v 1.12 2004/05/31 14:04:59 tsutsui Exp $ */
+/*     $NetBSD: hil_keymaps.c,v 1.13 2005/06/02 16:00:16 tsutsui Exp $ */
 
 /*
  * Copyright (c) 1990, 1993
@@ -98,7 +98,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: hil_keymaps.c,v 1.12 2004/05/31 14:04:59 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: hil_keymaps.c,v 1.13 2005/06/02 16:00:16 tsutsui Exp $");
 
 #include <sys/param.h>
 #include <hp300/dev/kbdmap.h>
@@ -179,7 +179,7 @@
        '\032', '\030', '\003', '\026', '\002', '\016', '\0',   '\0'
 };
 
-char   *us_stringmap[] = {
+const char *us_stringmap[] = {
        NULL,   NULL,   NULL,   NULL,   NULL,   NULL,   NULL,   NULL,
        NULL,   NULL,   NULL,   NULL,   NULL,   NULL,   "\033V","\033h",
        "\033U",NULL,   NULL,   NULL,   NULL,   NULL,   "\033K","\033J",
diff -r f9169b6b5d4f -r fbeafea912c3 sys/arch/hp300/dev/kbdmap.h
--- a/sys/arch/hp300/dev/kbdmap.h       Thu Jun 02 15:55:49 2005 +0000
+++ b/sys/arch/hp300/dev/kbdmap.h       Thu Jun 02 16:00:16 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kbdmap.h,v 1.10 2003/08/07 16:27:33 agc Exp $  */
+/*     $NetBSD: kbdmap.h,v 1.11 2005/06/02 16:00:16 tsutsui Exp $      */
 
 /*
  * Copyright (c) 1982, 1990, 1993
@@ -36,12 +36,12 @@
 
 struct kbdmap {
        int     kbd_code;
-       char    *kbd_desc;
+       const char *kbd_desc;
        char    *kbd_keymap;
        char    *kbd_shiftmap;
        char    *kbd_ctrlmap;
        char    *kbd_ctrlshiftmap;
-       char    **kbd_stringmap;
+       const char **kbd_stringmap;
 };
 
 /* kbd_code */



Home | Main Index | Thread Index | Old Index