diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2017-06-21 15:24:35 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2017-06-21 15:24:35 +0000 |
commit | 1a1f7c4245e5e4087c61692e66a3f4d56be04160 (patch) | |
tree | a407fb613a4d8e4f50f760eb64355f204e861a9f /sbin/dhclient/dhcpd.h | |
parent | 5b2bfa3464754cb42cb8c3c3a2e6380577a04cba (diff) |
Consistently use time(&var) idiom rather than tossing in a few
var = time(NULL). Flip "struct interface *" to be the first
parameter in set_timeout(), as in other functions taking the
state info.
Diffstat (limited to 'sbin/dhclient/dhcpd.h')
-rw-r--r-- | sbin/dhclient/dhcpd.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/dhclient/dhcpd.h b/sbin/dhclient/dhcpd.h index 890e01dd469..60a67d38528 100644 --- a/sbin/dhclient/dhcpd.h +++ b/sbin/dhclient/dhcpd.h @@ -1,4 +1,4 @@ -/* $OpenBSD: dhcpd.h,v 1.189 2017/06/18 21:08:15 krw Exp $ */ +/* $OpenBSD: dhcpd.h,v 1.190 2017/06/21 15:24:34 krw Exp $ */ /* * Copyright (c) 2004 Henning Brauer <henning@openbsd.org> @@ -210,8 +210,8 @@ ssize_t receive_packet(struct interface_info *, struct sockaddr_in *, /* dispatch.c */ void dispatch(struct interface_info *); -void set_timeout(time_t, void (*)(struct interface_info *), - struct interface_info *); +void set_timeout( struct interface_info *, time_t, + void (*)(struct interface_info *)); void cancel_timeout(struct interface_info *); void interface_link_forceup(char *); int interface_status(struct interface_info *); |