summaryrefslogtreecommitdiffstats
path: root/src/ipv6nd.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2019-07-22 16:12:53 +0100
committerRoy Marples <roy@marples.name>2019-07-22 16:12:53 +0100
commitd83ae1e75fed5b28696c90c98395632d1e99b357 (patch)
tree80ebffe23ec804717a0a64c204603d9961a2ec50 /src/ipv6nd.c
parent121e66bfda9d214a49a285e763739701553f2734 (diff)
downloaddhcpcd-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.c7
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 */