Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci Fix compilation problem when CBB_DEBUG is defined.
details: https://anonhg.NetBSD.org/src/rev/ab9db6305610
branches: trunk
changeset: 581381:ab9db6305610
user: sekiya <sekiya%NetBSD.org@localhost>
date: Wed Jun 01 09:10:57 2005 +0000
description:
Fix compilation problem when CBB_DEBUG is defined.
diffstat:
sys/dev/pci/pccbb.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r 3c3767523d91 -r ab9db6305610 sys/dev/pci/pccbb.c
--- a/sys/dev/pci/pccbb.c Wed Jun 01 08:39:32 2005 +0000
+++ b/sys/dev/pci/pccbb.c Wed Jun 01 09:10:57 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pccbb.c,v 1.120 2005/06/01 08:39:32 sekiya Exp $ */
+/* $NetBSD: pccbb.c,v 1.121 2005/06/01 09:10:57 sekiya Exp $ */
/*
* Copyright (c) 1998, 1999 and 2000
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pccbb.c,v 1.120 2005/06/01 08:39:32 sekiya Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pccbb.c,v 1.121 2005/06/01 09:10:57 sekiya Exp $");
/*
#define CBB_DEBUG
@@ -530,7 +530,7 @@
#if defined CBB_DEBUG
{
- static char *intrname[5] = { "NON", "A", "B", "C", "D" };
+ static const char *intrname[] = { "NON", "A", "B", "C", "D" };
printf("%s: intrpin %s, intrtag %d\n", sc->sc_dev.dv_xname,
intrname[pa->pa_intrpin], pa->pa_intrline);
}
@@ -2198,7 +2198,7 @@
bus_addr_t ioaddr = pcihp->addr + offset;
int i, win;
#if defined CBB_DEBUG
- static char *width_names[] = { "dynamic", "io8", "io16" };
+ static const char *width_names[] = { "dynamic", "io8", "io16" };
#endif
/* Sanity check I/O handle. */
Home |
Main Index |
Thread Index |
Old Index