Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ic const'ify.



details:   https://anonhg.NetBSD.org/src/rev/b8415b420b57
branches:  trunk
changeset: 542378:b8415b420b57
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Mon Jan 27 15:22:47 2003 +0000

description:
const'ify.

diffstat:

 sys/dev/ic/vga_raster.c |  4 ++--
 sys/dev/ic/vga_subr.c   |  8 ++++----
 2 files changed, 6 insertions(+), 6 deletions(-)

diffs (50 lines):

diff -r 866116da138a -r b8415b420b57 sys/dev/ic/vga_raster.c
--- a/sys/dev/ic/vga_raster.c   Mon Jan 27 15:16:10 2003 +0000
+++ b/sys/dev/ic/vga_raster.c   Mon Jan 27 15:22:47 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vga_raster.c,v 1.7 2003/01/27 15:16:11 tsutsui Exp $   */
+/*     $NetBSD: vga_raster.c,v 1.8 2003/01/27 15:22:47 tsutsui Exp $   */
 
 /*
  * Copyright (c) 2001, 2002 Bang Jun-Young
@@ -810,7 +810,7 @@
 {
        int i;
        int depth = 4;                  /* XXXBJY hardcoded for now */
-       int palette[16] = {
+       const u_int8_t palette[] = {
                0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x14, 0x07,
                0x38, 0x39, 0x3a, 0x3b, 0x3c, 0x3d, 0x3e, 0x3f
        };
diff -r 866116da138a -r b8415b420b57 sys/dev/ic/vga_subr.c
--- a/sys/dev/ic/vga_subr.c     Mon Jan 27 15:16:10 2003 +0000
+++ b/sys/dev/ic/vga_subr.c     Mon Jan 27 15:22:47 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vga_subr.c,v 1.12 2003/01/27 14:46:11 tsutsui Exp $ */
+/* $NetBSD: vga_subr.c,v 1.13 2003/01/27 15:22:47 tsutsui Exp $ */
 
 /*
  * Copyright (c) 1998
@@ -33,7 +33,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vga_subr.c,v 1.12 2003/01/27 14:46:11 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vga_subr.c,v 1.13 2003/01/27 15:22:47 tsutsui Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -152,11 +152,11 @@
 vga_setfontset(struct vga_handle *vh, int fontset1, int fontset2)
 {
        u_int8_t cmap;
-       static u_int8_t cmaptaba[] = {
+       static const u_int8_t cmaptaba[] = {
                0x00, 0x10, 0x01, 0x11,
                0x02, 0x12, 0x03, 0x13
        };
-       static u_int8_t cmaptabb[] = {
+       static const u_int8_t cmaptabb[] = {
                0x00, 0x20, 0x04, 0x24,
                0x08, 0x28, 0x0c, 0x2c
        };



Home | Main Index | Thread Index | Old Index