From 57f2d65e8fd5b00ae80cf74ed60eb5a8647c4658 Mon Sep 17 00:00:00 2001 From: Roger Wolff Date: Thu, 4 Jul 2013 12:37:39 +0200 Subject: [PATCH] fix for NetBSD: 64bit time_t -- Thomas Klausner --- report.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/report.c b/report.c index f0e0a037..e9071c1c 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); }