1 diff --git a/lib/ftfile.c b/lib/ftfile.c
2 index f25e849..ec17771 100644
5 @@ -413,16 +413,17 @@ void ftfile_pathname(char *buf, int bsiz
6 int done, u_int32 ftime)
9 + time_t _t = (time_t) ftime;
10 char *prefix, dbuf[64];
15 - if (!(tm = localtime ((time_t*)&ftime))) {
16 + if (!(tm = localtime (&_t))) {
17 snprintf(buf, bsize, ".");
20 - tm_gmtoff = get_gmtoff(ftime);
21 + tm_gmtoff = get_gmtoff(_t);
23 /* compute GMT offset */
25 @@ -502,6 +503,7 @@ void ftfile_pathname(char *buf, int bsiz
26 int ftfile_mkpath(u_int32 ftime, int nest)
29 + time_t _t = (time_t) ftime;
33 @@ -512,7 +514,7 @@ int ftfile_mkpath(u_int32 ftime, int nes
34 if ((nest > 3) || (nest < -3))
37 - if (!(tm = localtime ((time_t*)&ftime)))
38 + if (!(tm = localtime (&_t)))