From: Roger Wolff Date: Thu, 4 Jul 2013 10:37:39 +0000 (+0200) Subject: fix for NetBSD: 64bit time_t -- Thomas Klausner X-Git-Tag: v0.86~41 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=57f2d65e8fd5b00ae80cf74ed60eb5a8647c4658;p=thirdparty%2Fmtr.git fix for NetBSD: 64bit time_t -- Thomas Klausner --- diff --git a/report.c b/report.c index f0e0a03..e9071c1 100644 --- 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); }