[or-cvs] include our own timegm() impl, since it"s not portable
Roger Dingledine
arma at seul.org
Mon Oct 20 20:20:01 UTC 2003
Update of /home/or/cvsroot/src/or
In directory moria.mit.edu:/home2/arma/work/onion/cvs/src/or
Modified Files:
routers.c
Log Message:
include our own timegm() impl, since it's not portable
Index: routers.c
===================================================================
RCS file: /home/or/cvsroot/src/or/routers.c,v
retrieving revision 1.83
retrieving revision 1.84
diff -u -d -r1.83 -r1.84
--- routers.c 18 Oct 2003 04:18:26 -0000 1.83
+++ routers.c 20 Oct 2003 20:19:59 -0000 1.84
@@ -599,7 +599,7 @@
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 @@
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) {
More information about the tor-commits
mailing list