diff options
| author | Roy Marples <roy@marples.name> | 2019-07-22 16:12:53 +0100 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2019-07-22 16:12:53 +0100 |
| commit | d83ae1e75fed5b28696c90c98395632d1e99b357 (patch) | |
| tree | 80ebffe23ec804717a0a64c204603d9961a2ec50 /src/ipv6nd.c | |
| parent | 121e66bfda9d214a49a285e763739701553f2734 (diff) | |
| download | dhcpcd-d83ae1e75fed5b28696c90c98395632d1e99b357.tar.xz | |
Cast time_t to long long to satisfy printf.
There is no standard primitive for it.
Diffstat (limited to 'src/ipv6nd.c')
| -rw-r--r-- | src/ipv6nd.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/ipv6nd.c b/src/ipv6nd.c index e4cde483..1c4d8c84 100644 --- a/src/ipv6nd.c +++ b/src/ipv6nd.c @@ -1405,10 +1405,11 @@ ipv6nd_env(FILE *fp, const struct interface *ifp) snprintf(ndprefix, sizeof(ndprefix), "nd%zu", i); if (efprintf(fp, "%s_from=%s", ndprefix, rap->sfrom) == -1) return -1; - if (efprintf(fp, "%s_acquired=%ld", ndprefix, - rap->acquired.tv_sec) == -1) + if (efprintf(fp, "%s_acquired=%lld", ndprefix, + (long long)rap->acquired.tv_sec) == -1) return -1; - if (efprintf(fp, "%s_now=%ld", ndprefix, now.tv_sec) == -1) + if (efprintf(fp, "%s_now=%lld", ndprefix, + (long long)now.tv_sec) == -1) return -1; /* Zero our indexes */ |
