summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorPer Fogelstrom <pefo@cvs.openbsd.org>1998-04-06 20:23:22 +0000
committerPer Fogelstrom <pefo@cvs.openbsd.org>1998-04-06 20:23:22 +0000
commitcf2a862bcc48d1fa1569607bc6d0a81ea04757af (patch)
tree68fed40f3076adca8ce31eb329acb69c5aab31f0 /sys/arch
parent8b8bcd711a73ef2ab5f45779b6014b2a0284939a (diff)
fix some types
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/powerpc/pci/mpcpcibus.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/arch/powerpc/pci/mpcpcibus.c b/sys/arch/powerpc/pci/mpcpcibus.c
index b20c2d84f09..63683e3e385 100644
--- a/sys/arch/powerpc/pci/mpcpcibus.c
+++ b/sys/arch/powerpc/pci/mpcpcibus.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mpcpcibus.c,v 1.3 1997/10/21 18:01:44 pefo Exp $ */
+/* $OpenBSD: mpcpcibus.c,v 1.4 1998/04/06 20:23:21 pefo Exp $ */
/*
* Copyright (c) 1997 Per Fogelstrom
@@ -74,7 +74,7 @@ const char *mpc_intr_string __P((void *, pci_intr_handle_t));
void *mpc_intr_establish __P((void *, pci_intr_handle_t,
int, int (*func)(void *), void *, char *));
void mpc_intr_disestablish __P((void *, void *));
-void mpc_ether_hw_addr __P((u_int8_t *));
+int mpc_ether_hw_addr __P((u_int8_t *));
struct cfattach mpcpcibr_ca = {
sizeof(struct pcibr_softc), mpcpcibrmatch, mpcpcibrattach,
@@ -207,7 +207,7 @@ mpc_attach_hook(parent, self, pba)
{
}
-void
+int
mpc_ether_hw_addr(p)
u_int8_t *p;
{
@@ -248,6 +248,7 @@ mpc_ether_hw_addr(p)
i = (srom_crc32(p, 126) & 0xFFFF) ^ 0xFFFF;
p[126] = i;
p[127] = i >> 8;
+ return(1);
}
int