Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/newsmips/newsmips Cast through (void *) to appease ...
details: https://anonhg.NetBSD.org/src/rev/e6b7fee03ec0
branches: trunk
changeset: 554266:e6b7fee03ec0
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Sun Oct 26 14:52:52 2003 +0000
description:
Cast through (void *) to appease gcc3. (now it's also warned on mipseb)
diffstat:
sys/arch/newsmips/newsmips/machdep.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 9be0c49a348c -r e6b7fee03ec0 sys/arch/newsmips/newsmips/machdep.c
--- a/sys/arch/newsmips/newsmips/machdep.c Sun Oct 26 14:39:35 2003 +0000
+++ b/sys/arch/newsmips/newsmips/machdep.c Sun Oct 26 14:52:52 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.72 2003/10/25 04:07:28 tsutsui Exp $ */
+/* $NetBSD: machdep.c,v 1.73 2003/10/26 14:52:52 tsutsui Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -76,7 +76,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.72 2003/10/25 04:07:28 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.73 2003/10/26 14:52:52 tsutsui Exp $");
/* from: Utah Hdr: machdep.c 1.63 91/04/24 */
@@ -512,7 +512,7 @@
* and usually occupy more virtual memory than physical.
*/
size = MAXBSIZE * nbuf;
- if (uvm_map(kernel_map, (vaddr_t *)&buffers, round_page(size),
+ if (uvm_map(kernel_map, (vaddr_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)
Home |
Main Index |
Thread Index |
Old Index