summaryrefslogtreecommitdiff
path: root/sys/netatalk
diff options
context:
space:
mode:
authorBret Lambert <blambert@cvs.openbsd.org>2008-10-15 19:12:21 +0000
committerBret Lambert <blambert@cvs.openbsd.org>2008-10-15 19:12:21 +0000
commit447ea046b5b4aba425b2879f683099c1cfa3713f (patch)
tree8bca5f4e5c63f94a107ad0f4fb69f34c526fe488 /sys/netatalk
parentb302a033156f300c77b20b1eb011b4ceaccff009 (diff)
Second pass of simple timeout_add -> timeout_add_sec conversions
This should take care of the simpler ones (i.e., timeout values of integer multiples of hz). ok krw@, art@
Diffstat (limited to 'sys/netatalk')
-rw-r--r--sys/netatalk/aarp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/netatalk/aarp.c b/sys/netatalk/aarp.c
index f33046f29f9..d59b9c272f0 100644
--- a/sys/netatalk/aarp.c
+++ b/sys/netatalk/aarp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: aarp.c,v 1.7 2006/04/25 05:52:43 tedu Exp $ */
+/* $OpenBSD: aarp.c,v 1.8 2008/10/15 19:12:18 blambert Exp $ */
/*
* Copyright (c) 1990,1991 Regents of The University of Michigan.
@@ -144,7 +144,7 @@ aarptimer(v)
struct aarptab *aat;
int i, s;
- timeout_add(&aarptimer_timeout, AARPT_AGE * hz);
+ timeout_add_sec(&aarptimer_timeout, AARPT_AGE);
aat = aarptab;
for ( i = 0; i < AARPTAB_SIZE; i++, aat++ ) {
if ( aat->aat_flags == 0 || ( aat->aat_flags & ATF_PERM ))
@@ -575,7 +575,7 @@ aarptnew( addr )
if ( first ) {
first = 0;
timeout_set(&aarptimer_timeout, aarptimer, NULL);
- timeout_add(&aarptimer_timeout, hz);
+ timeout_add_sec(&aarptimer_timeout, 1);
}
aat = &aarptab[ AARPTAB_HASH( *addr ) * AARPTAB_BSIZ ];
for ( n = 0; n < AARPTAB_BSIZ; n++, aat++ ) {