Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/isa constify a little



details:   https://anonhg.NetBSD.org/src/rev/54c5f1329615
branches:  trunk
changeset: 552642:54c5f1329615
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Mon Sep 29 03:22:58 2003 +0000

description:
constify a little

diffstat:

 sys/dev/isa/sb.c |  12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diffs (43 lines):

diff -r 619e2bcb247a -r 54c5f1329615 sys/dev/isa/sb.c
--- a/sys/dev/isa/sb.c  Mon Sep 29 01:53:02 2003 +0000
+++ b/sys/dev/isa/sb.c  Mon Sep 29 03:22:58 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sb.c,v 1.74 2003/05/03 18:11:28 wiz Exp $      */
+/*     $NetBSD: sb.c,v 1.75 2003/09/29 03:22:58 jdolecek Exp $ */
 
 /*
  * Copyright (c) 1991-1993 Regents of the University of California.
@@ -35,7 +35,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sb.c,v 1.74 2003/05/03 18:11:28 wiz Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sb.c,v 1.75 2003/09/29 03:22:58 jdolecek Exp $");
 
 #include "midi.h"
 
@@ -119,11 +119,11 @@
 sbmatch(sc)
        struct sbdsp_softc *sc;
 {
-       static u_char drq_conf[8] = {
+       static const u_char drq_conf[8] = {
                0x01, 0x02, -1, 0x08, -1, 0x20, 0x40, 0x80
        };
 
-       static u_char irq_conf[11] = {
+       static const u_char irq_conf[11] = {
                -1, -1, 0x01, -1, -1, 0x02, -1, 0x04, -1, 0x01, 0x08
        };
 
@@ -264,8 +264,8 @@
        struct audio_device *retp;
 {
        struct sbdsp_softc *sc = addr;
-       static char *names[] = SB_NAMES;
-       char *config;
+       static const char * const names[] = SB_NAMES;
+       const char *config;
 
        if (sc->sc_model == SB_JAZZ)
                strncpy(retp->name, "MV Jazz16", sizeof(retp->name));



Home | Main Index | Thread Index | Old Index