From 1a1f7c4245e5e4087c61692e66a3f4d56be04160 Mon Sep 17 00:00:00 2001 From: Kenneth R Westerback Date: Wed, 21 Jun 2017 15:24:35 +0000 Subject: 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. --- sbin/dhclient/dhcpd.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sbin/dhclient/dhcpd.h') 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 @@ -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 *); -- cgit v1.2.3