From 6327c8f325bb4853f84f9fcd1a7bfd317d6a1256 Mon Sep 17 00:00:00 2001 From: Owain Ainsworth Date: Fri, 21 Nov 2008 16:53:06 +0000 Subject: cast pointer argument to bus_space_read_region_1 to the correct type (u_int8_t *). Fixes a warning when bus_space_read_region_1 is actually a function and not a macro. ok weingart@ --- sys/dev/pcmcia/if_ray.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/sys/dev/pcmcia/if_ray.c b/sys/dev/pcmcia/if_ray.c index a20d495834b..f5da8e812e2 100644 --- a/sys/dev/pcmcia/if_ray.c +++ b/sys/dev/pcmcia/if_ray.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_ray.c,v 1.35 2008/10/02 20:21:14 brad Exp $ */ +/* $OpenBSD: if_ray.c,v 1.36 2008/11/21 16:53:05 oga Exp $ */ /* $NetBSD: if_ray.c,v 1.21 2000/07/05 02:35:54 onoe Exp $ */ /* @@ -353,9 +353,11 @@ int ray_user_update_params(struct ray_softc *, struct ray_param_req *); #define ray_read_region(sc,off,p,c) \ - bus_space_read_region_1((sc)->sc_memt, (sc)->sc_memh, (off), (p), (c)) + bus_space_read_region_1((sc)->sc_memt, (sc)->sc_memh, (off), \ + (u_int8_t *)(p), (c)) #define ray_write_region(sc,off,p,c) \ - bus_space_write_region_1((sc)->sc_memt, (sc)->sc_memh, (off), (p), (c)) + bus_space_write_region_1((sc)->sc_memt, (sc)->sc_memh, (off), \ + (u_int8_t *)(p), (c)) #ifdef RAY_DO_SIGLEV void ray_update_siglev(struct ray_softc *, u_int8_t *, u_int8_t); -- cgit v1.2.3