summaryrefslogtreecommitdiffstats
path: root/sys/netatalk/aarp.c
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1997-04-20 15:36:12 +0000
committerbde <bde@FreeBSD.org>1997-04-20 15:36:12 +0000
commit7963d92bf141d4bdfc3b096a7d4692b58713290b (patch)
tree1ecd30e2210d317a9285526dd6e444875789dde6 /sys/netatalk/aarp.c
parente34af1091c2a425d01698055f7065e5e0d61abec (diff)
downloadFreeBSD-src-7963d92bf141d4bdfc3b096a7d4692b58713290b.zip
FreeBSD-src-7963d92bf141d4bdfc3b096a7d4692b58713290b.tar.gz
Fixed the type of timeout functions and removed casts that hid the
type mismatches. There was no problem in practice (at least on 386's).
Diffstat (limited to 'sys/netatalk/aarp.c')
-rw-r--r--sys/netatalk/aarp.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/netatalk/aarp.c b/sys/netatalk/aarp.c
index d81d177..7a9a71c 100644
--- a/sys/netatalk/aarp.c
+++ b/sys/netatalk/aarp.c
@@ -367,7 +367,7 @@ at_aarpinput( struct arpcom *ac, struct mbuf *m)
* probed for the same address we'd like to use. Change the
* address we're probing for.
*/
- untimeout((timeout_func_t) aarpprobe, ac );
+ untimeout( aarpprobe, ac );
wakeup( aa );
m_freem( m );
return;
@@ -518,8 +518,9 @@ out:
void
-aarpprobe( struct arpcom *ac )
+aarpprobe( void *arg )
{
+ struct arpcom *ac = arg;
struct mbuf *m;
struct ether_header *eh;
struct ether_aarp *ea;
@@ -551,7 +552,7 @@ aarpprobe( struct arpcom *ac )
wakeup( aa );
return;
} else {
- timeout( (timeout_func_t)aarpprobe, (caddr_t)ac, hz / 5 );
+ timeout( aarpprobe, (caddr_t)ac, hz / 5 );
}
if (( m = m_gethdr( M_DONTWAIT, MT_DATA )) == NULL ) {
OpenPOWER on IntegriCloud