diff options
author | Nick Mathewson <nickm@torproject.org> | 2004-03-09 22:09:13 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2004-03-09 22:09:13 +0000 |
commit | 0e5a13470917fc1b9f2ed3ae7e632a265857a774 (patch) | |
tree | 6dff681f4d41c4a11b801df9f56ef3b913e43797 /src/or/routerlist.c | |
parent | 2da54de9682716729154872ffc7946fbca1d6391 (diff) | |
download | tor-0e5a13470917fc1b9f2ed3ae7e632a265857a774.tar tor-0e5a13470917fc1b9f2ed3ae7e632a265857a774.tar.gz |
Fix DOS line endings; autoconfize checks for strptime and inet_aton
svn:r1248
Diffstat (limited to 'src/or/routerlist.c')
-rw-r--r-- | src/or/routerlist.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c index 4ade31c6f..64d4e6457 100644 --- a/src/or/routerlist.c +++ b/src/or/routerlist.c @@ -544,8 +544,7 @@ int router_exit_policy_rejects_all(routerinfo_t *router) { static time_t parse_time(const char *cp) { struct tm st_tm; - /* XXXX WWWW should be HAVE_STRPTIME */ -#ifndef MS_WINDOWS +#ifdef HAVE_STRPTIME if (!strptime(cp, "%Y-%m-%d %H:%M:%S", &st_tm)) { log_fn(LOG_WARN, "Published time was unparseable"); return 0; } @@ -903,7 +902,7 @@ routerinfo_t *router_get_entry_from_string(const char *s, log_fn(LOG_WARN, "Missing published time"); goto err; } assert(tok->n_args == 1); - if (!(router->published_on = parse_time(tok->args[0]))) + if (!(router->published_on = parse_time(tok->args[0]))) goto err; if (!(tok = find_first_by_keyword(tokens, K_ONION_KEY))) { |