X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Frrd_parsetime.c;h=d8b96f35d22d187a7625ee13cd74226a6bc64138;hb=586cc1f6f770892aa24f08e38a6c14c2c47ee560;hp=d854dfbc971123834d26aee45d682873546624dc;hpb=23a7a9744b3f840f358e1c8e8483f93bd2bdf97f;p=rrdtool.git diff --git a/src/rrd_parsetime.c b/src/rrd_parsetime.c index d854dfb..d8b96f3 100644 --- a/src/rrd_parsetime.c +++ b/src/rrd_parsetime.c @@ -687,7 +687,6 @@ static char *day( { /* using time_t seems to help portability with 64bit oses */ time_t mday = 0, wday, mon, year = ptv->tm.tm_year; - int tlen; switch (sc_tokid) { case YESTERDAY: @@ -756,7 +755,6 @@ static char *day( case NUMBER: /* get numeric , MM/DD/[YY]YY, or DD.MM.[YY]YY */ - tlen = strlen(sc_token); mon = atol(sc_token); if (mon > 10 * 365 * 24 * 60 * 60) { ptv->tm = *localtime(&mon);