From 90ebfcc21816f68697583b2914951c5906edf261 Mon Sep 17 00:00:00 2001 From: davidxu Date: Wed, 18 Oct 2006 02:09:46 +0000 Subject: [PATCH] Attempt to fix compiling problem. Noticed by: tinderbox --- sys/powerpc/aim/copyinout.c | 2 +- sys/powerpc/powerpc/copyinout.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/powerpc/aim/copyinout.c b/sys/powerpc/aim/copyinout.c index a5683eb7fe7b..4c6a0ae48159 100644 --- a/sys/powerpc/aim/copyinout.c +++ b/sys/powerpc/aim/copyinout.c @@ -325,7 +325,7 @@ fuword32(const void *addr) uint32_t casuword32(volatile uint32_t *base, uint32_t oldval, uint32_t newval) { - return (casuword(base, oldval, newval)); + return (casuword((volatile u_long *)base, oldval, newval)); } u_long diff --git a/sys/powerpc/powerpc/copyinout.c b/sys/powerpc/powerpc/copyinout.c index a5683eb7fe7b..4c6a0ae48159 100644 --- a/sys/powerpc/powerpc/copyinout.c +++ b/sys/powerpc/powerpc/copyinout.c @@ -325,7 +325,7 @@ fuword32(const void *addr) uint32_t casuword32(volatile uint32_t *base, uint32_t oldval, uint32_t newval) { - return (casuword(base, oldval, newval)); + return (casuword((volatile u_long *)base, oldval, newval)); } u_long