changeset 4564:622983991bf6 draft

Cast time_t to long long to satisfy printf. There is no standard primitive for it.
author Roy Marples <roy@marples.name>
date Mon, 22 Jul 2019 16:12:53 +0100
parents 91d939f87116
children a5889b07c310
files src/ipv6nd.c
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/ipv6nd.c	Mon Jul 22 15:59:37 2019 +0100
+++ b/src/ipv6nd.c	Mon Jul 22 16:12:53 2019 +0100
@@ -1405,10 +1405,11 @@
 		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 */