From 65a92876144f3016e623f49a75b5468cd8375bd4 Mon Sep 17 00:00:00 2001 From: oetiker Date: Mon, 25 Apr 2005 22:18:15 +0000 Subject: [PATCH] use time_t to improve portability to 64bit systems -- John R Mocho git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@436 a5681a0c-68f1-0310-ab6d-d61299d08faa --- src/parsetime.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/parsetime.c b/src/parsetime.c index 775a40a..eedd3e4 100644 --- a/src/parsetime.c +++ b/src/parsetime.c @@ -659,7 +659,8 @@ assign_date(struct rrd_time_value *ptv, long mday, long mon, long year) static char * day(struct rrd_time_value *ptv) { - long mday=0, wday, mon, year = ptv->tm.tm_year; + /* using time_t seems to help portability with 64bit oses */ + time_t mday=0, wday, mon, year = ptv->tm.tm_year; int tlen; switch (sc_tokid) { -- 2.11.0