wrap strdup; prefer time() to gettimeofday()

svn:r538
This commit is contained in:
Roger Dingledine
2003-10-04 03:29:09 +00:00
parent f563bbd2f9
commit be874358a4
15 changed files with 74 additions and 84 deletions
+1 -1
View File
@@ -184,7 +184,7 @@ static int spawn_cpuworker(void) {
/* set up conn so it's got all the data we need to remember */
conn->s = fd[0];
conn->address = strdup("localhost");
conn->address = tor_strdup("localhost");
if(connection_add(conn) < 0) { /* no space, forget it */
log_fn(LOG_WARNING,"connection_add failed. Giving up.");