f459295419a5f49d90411b3852246c4aacff5cc3
[openwrt/svn-archive/archive.git] / openwrt / package / htpdate / patches / no-time-delta-check.patch
1 --- htpdate-0.7.2-orig/htpdate.c 2005-05-05 20:53:13.000000000 +0200
2 +++ htpdate-0.7.2-1/htpdate.c 2005-05-07 15:31:21.000000000 +0200
3 @@ -411,11 +411,8 @@
4
5 timestamp = getHTTPdate( host, port, proxy, proxyport, when );
6
7 - /* Only include valid responses in timedelta[], |delta time| < year */
8 - if ( labs(timestamp) < 31536000 ) {
9 timedelta[validtime] = timestamp;
10 validtime++;
11 - }
12
13 /* Sleep for a while, unless we detect a time offset */
14 if ( daemonize && (timestamp == 0) )