- Fix prototypes to make compiler happy

This commit is contained in:
Oleksandr Tymoshenko 2009-06-14 21:16:23 +00:00
parent d7913bf5ab
commit ee58bf3153
2 changed files with 6 additions and 4 deletions

View File

@ -287,7 +287,7 @@ idtpci_maxslots(device_t dev)
}
static uint32_t
idtpci_read_config(device_t dev, int bus, int slot, int func, int reg,
idtpci_read_config(device_t dev, u_int bus, u_int slot, u_int func, u_int reg,
int bytes)
{
uint32_t data;
@ -343,7 +343,7 @@ idtpci_read_config(device_t dev, int bus, int slot, int func, int reg,
}
static void
idtpci_write_config(device_t dev, int bus, int slot, int func, int reg,
idtpci_write_config(device_t dev, u_int bus, u_int slot, u_int func, u_int reg,
uint32_t data, int bytes)
{
bus_addr_t addr;

View File

@ -89,7 +89,7 @@ static void kr_reset(struct kr_softc *);
static int kr_resume(device_t);
static int kr_rx_ring_init(struct kr_softc *);
static int kr_tx_ring_init(struct kr_softc *);
static void kr_shutdown(device_t);
static int kr_shutdown(device_t);
static void kr_start(struct ifnet *);
static void kr_start_locked(struct ifnet *);
static void kr_stop(struct kr_softc *);
@ -392,7 +392,7 @@ kr_resume(device_t dev)
return 0;
}
static void
static int
kr_shutdown(device_t dev)
{
struct kr_softc *sc;
@ -402,6 +402,8 @@ kr_shutdown(device_t dev)
KR_LOCK(sc);
kr_stop(sc);
KR_UNLOCK(sc);
return (0);
}
static int