From: Roy Marples Date: Sat, 4 Jan 2020 07:32:34 +0000 (+0000) Subject: dhcpcd: Use milliseconds rather than timespec for delays X-Git-Tag: v9.0.0~142 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=64ad91e1a9034456c00ee24f5fe20bb93db97555;p=thirdparty%2Fdhcpcd.git dhcpcd: Use milliseconds rather than timespec for delays --- diff --git a/src/dhcpcd.c b/src/dhcpcd.c index c65fd49e..d2b205ab 100644 --- a/src/dhcpcd.c +++ b/src/dhcpcd.c @@ -824,12 +824,9 @@ dhcpcd_startinterface(void *arg) if (IF_UPANDRUNNING(ifp)) carrier = LINK_UP; else { - struct timespec tv; - - tv.tv_sec = 0; - tv.tv_nsec = IF_POLL_UP * NSEC_PER_MSEC; - eloop_timeout_add_tv(ifp->ctx->eloop, - &tv, dhcpcd_startinterface, ifp); + eloop_timeout_add_msec(ifp->ctx->eloop, + IF_POLL_UP * MSEC_PER_SEC, + dhcpcd_startinterface, ifp); return; } }