diff options
| author | Roy Marples <roy@marples.name> | 2015-05-12 08:30:21 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2015-05-12 08:30:21 +0000 |
| commit | b3f1735bbff5416aa5c9c6f3a9258e4f7aeaeb80 (patch) | |
| tree | 49aa325359ac7d0583c96de74f95fee9dd48ea92 /ipv6nd.c | |
| parent | 629225460b229a86e467b0c667cc5f631b77dbab (diff) | |
| download | dhcpcd-b3f1735bbff5416aa5c9c6f3a9258e4f7aeaeb80.tar.xz | |
Replace get_monotonic usage with the standard clock_gettime.
Diffstat (limited to 'ipv6nd.c')
| -rw-r--r-- | ipv6nd.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -325,7 +325,7 @@ ipv6nd_expire(struct interface *ifp, uint32_t seconds) if (ifp->ctx->ipv6 == NULL) return; - get_monotonic(&now); + clock_gettime(CLOCK_MONOTONIC, &now); TAILQ_FOREACH(rap, ifp->ctx->ipv6->ra_routers, next) { if (rap->iface == ifp) { @@ -846,7 +846,7 @@ ipv6nd_handlera(struct dhcpcd_ctx *dctx, struct interface *ifp, rap->data_len = len; } - get_monotonic(&rap->received); + clock_gettime(CLOCK_MONOTONIC, &rap->received); rap->flags = nd_ra->nd_ra_flags_reserved; if (new_rap == 0 && rap->lifetime == 0) logger(ifp->ctx, LOG_WARNING, "%s: %s router available", @@ -1429,7 +1429,7 @@ ipv6nd_expirera(void *arg) uint8_t expired, valid, validone; ifp = arg; - get_monotonic(&now); + clock_gettime(CLOCK_MONOTONIC, &now); expired = 0; timespecclear(&next); |
