From 4bf50a5ad3199cc5461413cac1983bc1a244420f Mon Sep 17 00:00:00 2001 From: peter Date: Fri, 2 Jul 1999 04:17:16 +0000 Subject: Change the cast in pci_map_port() from u_short * to pci_port_t * so it compiles cleanly on the Alpha. (On the alpha, the port type is an int, not a short). Cast a couple of pointers to ints via 'uintptr_t' rather than 'unsigned int' since uintptr_t is long (64 bit) on Alpha, as are pointers. --- sys/pci/if_wb.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/pci/if_wb.c') diff --git a/sys/pci/if_wb.c b/sys/pci/if_wb.c index 3dd216c..5d51c3c 100644 --- a/sys/pci/if_wb.c +++ b/sys/pci/if_wb.c @@ -29,7 +29,7 @@ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF * THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: if_wb.c,v 1.9 1999/05/09 17:07:05 peter Exp $ + * $Id: if_wb.c,v 1.10 1999/05/13 20:36:00 wpaul Exp $ */ /* @@ -121,7 +121,7 @@ #ifndef lint static const char rcsid[] = - "$Id: if_wb.c,v 1.9 1999/05/09 17:07:05 peter Exp $"; + "$Id: if_wb.c,v 1.10 1999/05/13 20:36:00 wpaul Exp $"; #endif /* @@ -1092,7 +1092,7 @@ wb_attach(config_id, unit) } if (!pci_map_port(config_id, WB_PCI_LOIO, - (u_int16_t *)&(sc->wb_bhandle))) { + (pci_port_t *)&(sc->wb_bhandle))) { printf ("wb%d: couldn't map ports\n", unit); goto fail; } -- cgit v1.1