]> git.ipfire.org Git - thirdparty/mtr.git/commitdiff
fix for NetBSD: 64bit time_t -- Thomas Klausner
authorRoger Wolff <R.E.Wolff@BitWizard.nl>
Thu, 4 Jul 2013 10:37:39 +0000 (12:37 +0200)
committerRoger Wolff <R.E.Wolff@BitWizard.nl>
Thu, 4 Jul 2013 10:37:39 +0000 (12:37 +0200)
report.c

index f0e0a037003e70e15005fd56cd463abec8bdfe10..e9071c1ca5715e9230fe47d3d9b966595dc9b401 100644 (file)
--- a/report.c
+++ b/report.c
@@ -343,10 +343,10 @@ void csv_close(time_t now)
     if(!ipinfo_no) {
       char* fmtinfo = fmt_ipinfo(addr);
       if (fmtinfo != NULL) fmtinfo = trim(fmtinfo);
-      printf("MTR.%s;%lu;%s;%s;%d;%s;%s;%d", MTR_VERSION, now, "OK", Hostname,
+      printf("MTR.%s;%lld;%s;%s;%d;%s;%s;%d", MTR_VERSION, (long long)now, "OK", Hostname,
              at+1, name, fmtinfo, last);
     } else {
-      printf("MTR.%s;%lu;%s;%s;%d;%s;%d", MTR_VERSION, now, "OK", Hostname,
+      printf("MTR.%s;%lld;%s;%s;%d;%s;%d", MTR_VERSION, (long long)now, "OK", Hostname,
              at+1, name, last);
     }