diff options
author | Roger Dingledine <arma@torproject.org> | 2003-10-20 20:19:59 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2003-10-20 20:19:59 +0000 |
commit | 5f1750a2886a8c5e488fa4ecc8140d07ce5b1186 (patch) | |
tree | a637af519d5884335871832568a49a215bc30c38 /src/or/routers.c | |
parent | b40d0bffa781b6e212d0ba39c5bf63039762762e (diff) | |
download | tor-5f1750a2886a8c5e488fa4ecc8140d07ce5b1186.tar.gz tor-5f1750a2886a8c5e488fa4ecc8140d07ce5b1186.zip |
include our own timegm() impl, since it's not portable
svn:r635
Diffstat (limited to 'src/or/routers.c')
-rw-r--r-- | src/or/routers.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/routers.c b/src/or/routers.c index 4ecd2fcb9c..5acaa43005 100644 --- a/src/or/routers.c +++ b/src/or/routers.c @@ -599,7 +599,7 @@ int router_get_dir_from_string_impl(char *s, directory_t **dest, if (!strptime(tok.val.cmd.args[0], "%Y-%m-%d %H:%M:%S", &published)) { log_fn(LOG_WARN, "Published time was unparseable"); goto err; } - published_on = timegm(&published); + published_on = tor_timegm(&published); NEXT_TOK(); TOK_IS(K_RECOMMENDED_SOFTWARE, "recommended-software"); @@ -857,7 +857,7 @@ routerinfo_t *router_get_entry_from_string(char**s) { if (!strptime(ARGS[0], "%Y-%m-%d %H:%M:%S", &published)) { log_fn(LOG_WARN, "Published time was unparseable"); goto err; } - router->published_on = timegm(&published); + router->published_on = tor_timegm(&published); NEXT_TOKEN(); if (tok->tp != K_ONION_KEY) { |