summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2011-09-29 20:57:43 +0000
committermiod <miod@openbsd.org>2011-09-29 20:57:43 +0000
commitf7cb0379ecb39f218203241199ba342b01774e8b (patch)
treec6647c78db235c0d0ebd98c7965a165fdec3884c
parentRemove assembly defines for various struct disklabel field offsets, now that (diff)
downloadwireguard-openbsd-f7cb0379ecb39f218203241199ba342b01774e8b.tar.xz
wireguard-openbsd-f7cb0379ecb39f218203241199ba342b01774e8b.zip
Fix local types in vgafb_pci_probe(), to match what pci_*_find() expect,
after the bus_{addr,size}_t type definition change.
-rw-r--r--sys/arch/macppc/pci/vgafb_pci.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/arch/macppc/pci/vgafb_pci.c b/sys/arch/macppc/pci/vgafb_pci.c
index 7f7a442908b..307790ad30b 100644
--- a/sys/arch/macppc/pci/vgafb_pci.c
+++ b/sys/arch/macppc/pci/vgafb_pci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vgafb_pci.c,v 1.21 2010/05/22 21:30:26 deraadt Exp $ */
+/* $OpenBSD: vgafb_pci.c,v 1.22 2011/09/29 20:57:43 miod Exp $ */
/* $NetBSD: vga_pci.c,v 1.4 1996/12/05 01:39:38 cgd Exp $ */
/*
@@ -85,8 +85,9 @@ vgafb_pci_probe(struct pci_attach_args *pa, int id, u_int32_t *ioaddr,
u_int32_t *iosize, u_int32_t *memaddr, u_int32_t *memsize,
u_int32_t *cacheable, u_int32_t *mmioaddr, u_int32_t *mmiosize)
{
- u_long addr;
- u_int32_t size, tcacheable;
+ bus_addr_t addr;
+ bus_size_t size;
+ int tcacheable;
pci_chipset_tag_t pc = pa->pa_pc;
int retval;
int i;