diff -urN flow-tools-0.68/lib/ftfile.c flow-tools-0.68.a/lib/ftfile.c --- flow-tools-0.68/lib/ftfile.c 2003-02-13 05:38:42.000000000 +0300 +++ flow-tools-0.68.a/lib/ftfile.c 2005-10-30 00:27:33.000000000 +0400 @@ -413,16 +413,17 @@ int done, u_int32 ftime) { struct tm *tm; + time_t _t = (time_t) ftime; char *prefix, dbuf[64]; long gmt_val; char gmt_sign; int tm_gmtoff; - if (!(tm = localtime ((time_t*)&ftime))) { + if (!(tm = localtime (&_t))) { snprintf(buf, bsize, "."); } - tm_gmtoff = get_gmtoff(ftime); + tm_gmtoff = get_gmtoff(_t); /* compute GMT offset */ if (tm_gmtoff >= 0) { @@ -502,6 +503,7 @@ int ftfile_mkpath(u_int32 ftime, int nest) { struct tm *tm; + time_t _t = (time_t) ftime; char buf[32]; /* no directories */ @@ -512,7 +514,7 @@ if ((nest > 3) || (nest < -3)) return -1; - if (!(tm = localtime ((time_t*)&ftime))) + if (!(tm = localtime (&_t))) return -1; if (nest == -1)