Add loop-aes, and mark it 2.6 for now (did not test on brcm-2.4) (#2484)
[openwrt/svn-archive/archive.git] / net / flow-tools / patches / 050-fix-64bit_temp_time_t.patch
1 diff --git a/lib/ftfile.c b/lib/ftfile.c
2 index f25e849..ec17771 100644
3 --- a/lib/ftfile.c
4 +++ b/lib/ftfile.c
5 @@ -413,16 +413,17 @@ void ftfile_pathname(char *buf, int bsiz
6 int done, u_int32 ftime)
7 {
8 struct tm *tm;
9 + time_t _t = (time_t) ftime;
10 char *prefix, dbuf[64];
11 long gmt_val;
12 char gmt_sign;
13 int tm_gmtoff;
14
15 - if (!(tm = localtime ((time_t*)&ftime))) {
16 + if (!(tm = localtime (&_t))) {
17 snprintf(buf, bsize, ".");
18 }
19
20 - tm_gmtoff = get_gmtoff(ftime);
21 + tm_gmtoff = get_gmtoff(_t);
22
23 /* compute GMT offset */
24 if (tm_gmtoff >= 0) {
25 @@ -502,6 +503,7 @@ void ftfile_pathname(char *buf, int bsiz
26 int ftfile_mkpath(u_int32 ftime, int nest)
27 {
28 struct tm *tm;
29 + time_t _t = (time_t) ftime;
30 char buf[32];
31
32 /* no directories */
33 @@ -512,7 +514,7 @@ int ftfile_mkpath(u_int32 ftime, int nes
34 if ((nest > 3) || (nest < -3))
35 return -1;
36
37 - if (!(tm = localtime ((time_t*)&ftime)))
38 + if (!(tm = localtime (&_t)))
39 return -1;
40
41 if (nest == -1)