From: oetiker Date: Mon, 25 Apr 2005 22:18:15 +0000 (+0000) Subject: use time_t to improve portability to 64bit systems X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=65a92876144f3016e623f49a75b5468cd8375bd4;p=rrdtool.git 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 --- 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) {