Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/tc fix cast-qual fallout
details: https://anonhg.NetBSD.org/src/rev/2bfd3176aff1
branches: trunk
changeset: 581436:2bfd3176aff1
user: drochner <drochner%NetBSD.org@localhost>
date: Wed Jun 01 16:17:40 2005 +0000
description:
fix cast-qual fallout
diffstat:
sys/dev/tc/bba.c | 6 +++---
sys/dev/tc/ioasicvar.h | 4 ++--
sys/dev/tc/tcvar.h | 6 +++---
3 files changed, 8 insertions(+), 8 deletions(-)
diffs (72 lines):
diff -r 88946c3dcaa8 -r 2bfd3176aff1 sys/dev/tc/bba.c
--- a/sys/dev/tc/bba.c Wed Jun 01 16:13:45 2005 +0000
+++ b/sys/dev/tc/bba.c Wed Jun 01 16:17:40 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bba.c,v 1.24 2005/01/15 15:19:53 kent Exp $ */
+/* $NetBSD: bba.c,v 1.25 2005/06/01 16:17:40 drochner Exp $ */
/*
* Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -36,7 +36,7 @@
/* maxine/alpha baseboard audio (bba) */
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: bba.c,v 1.24 2005/01/15 15:19:53 kent Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bba.c,v 1.25 2005/06/01 16:17:40 drochner Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -662,7 +662,7 @@
m = dst->end - dst->start;
m = min(m, max_used);
FILTER_LOOP_PROLOGUE(this->src, 4, dst, 1, m) {
- *d = ((*(uint32_t *)s) >> 16) & 0xff;
+ *d = ((*(const uint32_t *)s) >> 16) & 0xff;
} FILTER_LOOP_EPILOGUE(this->src, dst);
return 0;
}
diff -r 88946c3dcaa8 -r 2bfd3176aff1 sys/dev/tc/ioasicvar.h
--- a/sys/dev/tc/ioasicvar.h Wed Jun 01 16:13:45 2005 +0000
+++ b/sys/dev/tc/ioasicvar.h Wed Jun 01 16:17:40 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ioasicvar.h,v 1.17 2005/02/04 02:10:48 perry Exp $ */
+/* $NetBSD: ioasicvar.h,v 1.18 2005/06/01 16:17:40 drochner Exp $ */
/*
* Copyright (c) 1995 Carnegie-Mellon University.
@@ -31,7 +31,7 @@
#define _DEV_TC_IOASICVAR_H_
struct ioasic_dev {
- char *iad_modname;
+ const char *iad_modname;
tc_offset_t iad_offset;
void *iad_cookie;
u_int32_t iad_intrbits;
diff -r 88946c3dcaa8 -r 2bfd3176aff1 sys/dev/tc/tcvar.h
--- a/sys/dev/tc/tcvar.h Wed Jun 01 16:13:45 2005 +0000
+++ b/sys/dev/tc/tcvar.h Wed Jun 01 16:17:40 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tcvar.h,v 1.20 2005/02/27 00:27:50 perry Exp $ */
+/* $NetBSD: tcvar.h,v 1.21 2005/06/01 16:17:40 drochner Exp $ */
/*
* Copyright (c) 1995 Carnegie-Mellon University.
@@ -80,7 +80,7 @@
* Arguments used to attach TURBOchannel busses.
*/
struct tcbus_attach_args {
- char *tba_busname; /* XXX should be common */
+ const char *tba_busname; /* XXX should be common */
bus_space_tag_t tba_memt;
/* Bus information */
@@ -129,7 +129,7 @@
* machine-dependent code to the TURBOchannel bus driver.
*/
struct tc_builtin {
- char *tcb_modname;
+ const char *tcb_modname;
u_int tcb_slot;
tc_offset_t tcb_offset;
void *tcb_cookie;
Home |
Main Index |
Thread Index |
Old Index