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