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 a readonly array const.



details:   https://anonhg.NetBSD.org/src/rev/959f54a66e3c
branches:  trunk
changeset: 366429:959f54a66e3c
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Thu May 26 14:30:11 2022 +0000

description:
Make a readonly array const.

diffstat:

 sys/arch/x68k/dev/zs.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 786978a4fd91 -r 959f54a66e3c sys/arch/x68k/dev/zs.c
--- a/sys/arch/x68k/dev/zs.c    Thu May 26 14:28:56 2022 +0000
+++ b/sys/arch/x68k/dev/zs.c    Thu May 26 14:30:11 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: zs.c,v 1.47 2021/09/11 20:28:05 andvar Exp $   */
+/*     $NetBSD: zs.c,v 1.48 2022/05/26 14:30:11 tsutsui Exp $  */
 
 /*-
  * Copyright (c) 1998 Minoura Makoto
@@ -40,7 +40,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: zs.c,v 1.47 2021/09/11 20:28:05 andvar Exp $");
+__KERNEL_RCSID(0, "$NetBSD: zs.c,v 1.48 2022/05/26 14:30:11 tsutsui Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -89,7 +89,7 @@
 
 /* Default physical addresses. */
 #define ZS_MAXDEV 5
-static bus_addr_t zs_physaddr[ZS_MAXDEV] = {
+static const bus_addr_t zs_physaddr[ZS_MAXDEV] = {
        0x00e98000,
        0x00eafc00,
        0x00eafc10,



Home | Main Index | Thread Index | Old Index