diff options
author | jhb <jhb@FreeBSD.org> | 2002-11-06 20:34:38 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2002-11-06 20:34:38 +0000 |
commit | 5f80d8bbe2422e0ba8a95077d8391d942ca1f9d3 (patch) | |
tree | 12eef7de33b03a1147caadc70f12ab1a7437554d /sys/dev/buslogic | |
parent | a956a28e3532679a67882a2420e718b56e3d86ae (diff) | |
download | FreeBSD-src-5f80d8bbe2422e0ba8a95077d8391d942ca1f9d3.zip FreeBSD-src-5f80d8bbe2422e0ba8a95077d8391d942ca1f9d3.tar.gz |
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.
Diffstat (limited to 'sys/dev/buslogic')
-rw-r--r-- | sys/dev/buslogic/bt.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 |