From 5f80d8bbe2422e0ba8a95077d8391d942ca1f9d3 Mon Sep 17 00:00:00 2001 From: jhb Date: Wed, 6 Nov 2002 20:34:38 +0000 Subject: Add some band-aid casts to quiet warnings. This driver still assumes that sizeof(int) == sizeof(void *) == 4. However, it also seems that the hardware assumes this. --- sys/dev/buslogic/bt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/dev/buslogic/bt.c') diff --git a/sys/dev/buslogic/bt.c b/sys/dev/buslogic/bt.c index c0f9f0e..7bb3010 100644 --- a/sys/dev/buslogic/bt.c +++ b/sys/dev/buslogic/bt.c @@ -119,7 +119,7 @@ static __inline struct bt_ccb * btccbptov(struct bt_softc *bt, u_int32_t ccb_addr) { return (bt->bt_ccb_array + - ((struct bt_ccb*)ccb_addr-(struct bt_ccb*)bt->bt_ccb_physbase)); + ((struct bt_ccb*)(uintptr_t)ccb_addr - (struct bt_ccb*)(uintptr_t)bt->bt_ccb_physbase)); } static __inline u_int32_t -- cgit v1.1