From 35f39e201cf878c5d85aeb98a2d4068bf6351ff6 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@436 a5681a0c-68f1-0310-ab6d-d61299d08faa --- program/src/parsetime.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/program/src/parsetime.c b/program/src/parsetime.c index 775a40a2..eedd3e48 100644 --- a/program/src/parsetime.c +++ b/program/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.30.2