Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch Cast through (void *) to appease gcc3.
details: https://anonhg.NetBSD.org/src/rev/b7928b6fd910
branches: trunk
changeset: 552579:b7928b6fd910
user: mhitch <mhitch%NetBSD.org@localhost>
date: Sat Sep 27 19:34:17 2003 +0000
description:
Cast through (void *) to appease gcc3.
diffstat:
sys/arch/amiga/amiga/machdep.c | 6 +++---
sys/arch/amiga/amiga/pmap.c | 6 +++---
sys/arch/m68k/m68k/regdump.c | 8 ++++----
3 files changed, 10 insertions(+), 10 deletions(-)
diffs (83 lines):
diff -r bf10c8d5d4e6 -r b7928b6fd910 sys/arch/amiga/amiga/machdep.c
--- a/sys/arch/amiga/amiga/machdep.c Sat Sep 27 19:09:10 2003 +0000
+++ b/sys/arch/amiga/amiga/machdep.c Sat Sep 27 19:34:17 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.185 2003/08/07 16:26:38 agc Exp $ */
+/* $NetBSD: machdep.c,v 1.186 2003/09/27 19:34:17 mhitch Exp $ */
/*
* Copyright (c) 1982, 1986, 1990 The Regents of the University of California.
@@ -85,7 +85,7 @@
#include "opt_panicbutton.h"
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.185 2003/08/07 16:26:38 agc Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.186 2003/09/27 19:34:17 mhitch Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -315,7 +315,7 @@
* in that they usually occupy more virtual memory than physical.
*/
size = MAXBSIZE * nbuf;
- if (uvm_map(kernel_map, (vm_offset_t *)&buffers, round_page(size),
+ if (uvm_map(kernel_map, (vm_offset_t *)(void *)&buffers, round_page(size),
NULL, UVM_UNKNOWN_OFFSET, 0,
UVM_MAPFLAG(UVM_PROT_NONE, UVM_PROT_NONE, UVM_INH_NONE,
UVM_ADV_NORMAL, 0)) != 0)
diff -r bf10c8d5d4e6 -r b7928b6fd910 sys/arch/amiga/amiga/pmap.c
--- a/sys/arch/amiga/amiga/pmap.c Sat Sep 27 19:09:10 2003 +0000
+++ b/sys/arch/amiga/amiga/pmap.c Sat Sep 27 19:34:17 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.107 2003/08/07 16:26:39 agc Exp $ */
+/* $NetBSD: pmap.c,v 1.108 2003/09/27 19:34:17 mhitch Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -107,7 +107,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.107 2003/08/07 16:26:39 agc Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.108 2003/09/27 19:34:17 mhitch Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -568,7 +568,7 @@
if (addr == 0)
panic("pmap_init: can't allocate data structures");
Segtabzero = (u_int *) addr;
- (void) pmap_extract(pmap_kernel(), addr, (paddr_t *)&Segtabzeropa);
+ (void) pmap_extract(pmap_kernel(), addr, (paddr_t *)(void *)&Segtabzeropa);
addr += AMIGA_STSIZE;
pv_table = (pv_entry_t) addr;
diff -r bf10c8d5d4e6 -r b7928b6fd910 sys/arch/m68k/m68k/regdump.c
--- a/sys/arch/m68k/m68k/regdump.c Sat Sep 27 19:09:10 2003 +0000
+++ b/sys/arch/m68k/m68k/regdump.c Sat Sep 27 19:34:17 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: regdump.c,v 1.6 2003/08/07 16:28:18 agc Exp $ */
+/* $NetBSD: regdump.c,v 1.7 2003/09/27 19:34:17 mhitch Exp $ */
/*
* Copyright (c) 1982, 1986, 1990, 1993
@@ -75,7 +75,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: regdump.c,v 1.6 2003/08/07 16:28:18 agc Exp $");
+__KERNEL_RCSID(0, "$NetBSD: regdump.c,v 1.7 2003/09/27 19:34:17 mhitch Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -126,8 +126,8 @@
if (sbytes > 0) {
if (tf->tf_sr & PSL_S) {
printf("\n\nKernel stack (%s):",
- hexstr((int)(((int *)&tf)-1), 8));
- dumpmem(((int *)&tf)-1, sbytes, 0);
+ hexstr((int)(((int *)(void *)&tf)-1), 8));
+ dumpmem(((int *)(void *)&tf)-1, sbytes, 0);
} else {
printf("\n\nUser stack (%s):", hexstr(tf->tf_regs[SP], 8));
dumpmem((int *)tf->tf_regs[SP], sbytes, 1);
Home |
Main Index |
Thread Index |
Old Index