Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/newsmips Appease gcc -Wcast-qual.
details: https://anonhg.NetBSD.org/src/rev/960267719de6
branches: trunk
changeset: 581653:960267719de6
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Fri Jun 03 13:48:38 2005 +0000
description:
Appease gcc -Wcast-qual.
diffstat:
sys/arch/newsmips/apbus/xafb.c | 6 +++---
sys/arch/newsmips/dev/kb_hb.c | 8 ++++----
2 files changed, 7 insertions(+), 7 deletions(-)
diffs (58 lines):
diff -r 8dbee38f6719 -r 960267719de6 sys/arch/newsmips/apbus/xafb.c
--- a/sys/arch/newsmips/apbus/xafb.c Fri Jun 03 13:47:05 2005 +0000
+++ b/sys/arch/newsmips/apbus/xafb.c Fri Jun 03 13:48:38 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: xafb.c,v 1.9 2005/02/06 02:18:02 tsutsui Exp $ */
+/* $NetBSD: xafb.c,v 1.10 2005/06/03 13:48:38 tsutsui Exp $ */
/*-
* Copyright (c) 2000 Tsubai Masanari. All rights reserved.
@@ -29,7 +29,7 @@
/* "xa" frame buffer driver. Currently supports 1280x1024x8 only. */
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: xafb.c,v 1.9 2005/02/06 02:18:02 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: xafb.c,v 1.10 2005/06/03 13:48:38 tsutsui Exp $");
#include <sys/param.h>
#include <sys/buf.h>
@@ -61,7 +61,7 @@
};
struct xafb_devconfig {
- volatile u_char *dc_fbbase; /* VRAM base address */
+ u_char *dc_fbbase; /* VRAM base address */
paddr_t dc_fbpaddr; /* VRAM physical address */
struct xafb_reg *dc_reg; /* register address */
struct rasops_info dc_ri;
diff -r 8dbee38f6719 -r 960267719de6 sys/arch/newsmips/dev/kb_hb.c
--- a/sys/arch/newsmips/dev/kb_hb.c Fri Jun 03 13:47:05 2005 +0000
+++ b/sys/arch/newsmips/dev/kb_hb.c Fri Jun 03 13:48:38 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kb_hb.c,v 1.8 2005/02/06 02:18:02 tsutsui Exp $ */
+/* $NetBSD: kb_hb.c,v 1.9 2005/06/03 13:48:38 tsutsui Exp $ */
/*-
* Copyright (c) 2000 Tsubai Masanari. All rights reserved.
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kb_hb.c,v 1.8 2005/02/06 02:18:02 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kb_hb.c,v 1.9 2005/06/03 13:48:38 tsutsui Exp $");
#include <sys/param.h>
#include <sys/device.h>
@@ -165,10 +165,10 @@
kb_hb_cnattach(void)
{
volatile int *dipsw = (void *)DIP_SWITCH;
- volatile struct kbreg *reg = (void *)KEYB_DATA;
if (*dipsw & 7)
- wskbd_cnattach(&kb_hb_consops, (void *)reg, &kb_hb_keymapdata);
+ wskbd_cnattach(&kb_hb_consops, (void *)KEYB_DATA,
+ &kb_hb_keymapdata);
}
void
Home |
Main Index |
Thread Index |
Old Index