Mercurial > hg > dhcpcd
changeset 4937:62871607444f draft
dhcpcd: Use milliseconds rather than timespec for delays
| author | Roy Marples <roy@marples.name> |
|---|---|
| date | Sat, 04 Jan 2020 07:32:34 +0000 |
| parents | bc83063dc5ef |
| children | dbbe48b8cdd4 |
| files | src/dhcpcd.c |
| diffstat | 1 files changed, 3 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/src/dhcpcd.c Sat Jan 04 07:28:35 2020 +0000 +++ b/src/dhcpcd.c Sat Jan 04 07:32:34 2020 +0000 @@ -824,12 +824,9 @@ 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; } }
