From 060d721554695cd689d5873cdd366d59721ada46 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Thu, 11 Mar 2004 06:22:53 +0000 Subject: [PATCH] UnDOSify CRLF->LF. svn:r1259 --- src/or/routerlist.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/or/routerlist.c b/src/or/routerlist.c index ce7e2caa42..d5b16b56c1 100644 --- a/src/or/routerlist.c +++ b/src/or/routerlist.c @@ -551,12 +551,12 @@ static int parse_time(const char *cp, time_t *t) #else unsigned int year=0, month=0, day=0, hour=100, minute=100, second=100; if (sscanf(cp, "%u-%u-%u %u:%u:%u", &year, &month, - &day, &hour, &minute, &second) < 6) { - log_fn(LOG_WARN, "Published time was unparseable"); return -1; + &day, &hour, &minute, &second) < 6) { + log_fn(LOG_WARN, "Published time was unparseable"); return -1; } if (year < 1970 || month < 1 || month > 12 || day < 1 || day > 31 || - hour > 23 || minute > 59 || second > 61) { - log_fn(LOG_WARN, "Published time was nonsensical"); return -1; + hour > 23 || minute > 59 || second > 61) { + log_fn(LOG_WARN, "Published time was nonsensical"); return -1; } st_tm.tm_year = year; st_tm.tm_mon = month-1; @@ -903,7 +903,7 @@ routerinfo_t *router_get_entry_from_string(const char *s, } assert(tok->n_args == 1); if (parse_time(tok->args[0], &router->published_on) < 0) - goto err; + goto err; if (!(tok = find_first_by_keyword(tokens, K_ONION_KEY))) { log_fn(LOG_WARN, "Missing onion key"); goto err;