summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOwain Ainsworth <oga@cvs.openbsd.org>2008-11-21 16:53:06 +0000
committerOwain Ainsworth <oga@cvs.openbsd.org>2008-11-21 16:53:06 +0000
commit6327c8f325bb4853f84f9fcd1a7bfd317d6a1256 (patch)
treead727c947e17d1848ce45fd380e4ab1282abe975
parent1b5b2b50332d7f6ea9c6d2c79227e72032ea0585 (diff)
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@
-rw-r--r--sys/dev/pcmcia/if_ray.c8
1 files 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);