You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apr.apache.org by David Jones <os...@gmail.com> on 2007/12/11 20:13:44 UTC
PATCH: remove unused variable = offset
the variable offset is no longer used
Index: apr-util/test/testdate.c
===================================================================
--- apr-util/test/testdate.c (revision 603262)
+++ apr-util/test/testdate.c (working copy)
@@ -143,12 +143,11 @@
{
int year, i;
apr_time_t guess;
- apr_time_t offset = 0;
apr_time_t secstodate, newsecs;
char datestr[50];
for (year = 1970; year < 2038; ++year) {
- secstodate = year2secs[year - 1970] + offset;
+ secstodate = year2secs[year - 1970];
gm_timestr_822(datestr, secstodate);
secstodate *= APR_USEC_PER_SEC;
newsecs = apr_date_parse_http(datestr);
@@ -165,7 +164,7 @@
guess = (time_t)lgc((apr_uint32_t)guess);
if (guess < 0)
guess *= -1;
- secstodate = guess + offset;
+ secstodate = guess;
gm_timestr_822(datestr, secstodate);
secstodate *= APR_USEC_PER_SEC;
newsecs = apr_date_parse_http(datestr);