diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2017-06-18 17:01:47 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2017-06-18 17:01:47 +0000 |
commit | 554db0131803be76055dc5c9b56d21d88bcf28f8 (patch) | |
tree | fcf7216f8ad535a7cfe690a87bd1c10c48b84458 /sbin/dhclient/dispatch.c | |
parent | 6f3d52748ebfc0e8a5ebc51ce9dd581e28ad14a5 (diff) |
Convert last set_timeout() use to set_timeout_interval() and
then remove set_timeout() and rename set_timeout_interval() to
set_timeout().
Diffstat (limited to 'sbin/dhclient/dispatch.c')
-rw-r--r-- | sbin/dhclient/dispatch.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/sbin/dhclient/dispatch.c b/sbin/dhclient/dispatch.c index 4138f703f92..62308ec073c 100644 --- a/sbin/dhclient/dispatch.c +++ b/sbin/dhclient/dispatch.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dispatch.c,v 1.122 2017/06/14 20:27:08 krw Exp $ */ +/* $OpenBSD: dispatch.c,v 1.123 2017/06/18 17:01:46 krw Exp $ */ /* * Copyright 2004 Henning Brauer <henning@openbsd.org> @@ -280,16 +280,7 @@ interface_status(struct interface_info *ifi) } void -set_timeout(time_t when, void (*where)(struct interface_info *), - struct interface_info *ifi) -{ - timeout.when = when; - timeout.func = where; - timeout.ifi = ifi; -} - -void -set_timeout_interval(time_t secs, void (*where)(struct interface_info *), +set_timeout(time_t secs, void (*where)(struct interface_info *), struct interface_info *ifi) { timeout.when = time(NULL) + secs; |