aboutsummaryrefslogtreecommitdiff
path: root/src/or/cpuworker.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2003-10-04 03:29:09 +0000
committerRoger Dingledine <arma@torproject.org>2003-10-04 03:29:09 +0000
commitbe874358a4385d8d6bd7f82d3f372bb79055033c (patch)
tree72b615a6357820b49e9a66ab32c3554463a7834c /src/or/cpuworker.c
parentf563bbd2f988cd1f6ca292f89a47a86f98fe0e8d (diff)
downloadtor-be874358a4385d8d6bd7f82d3f372bb79055033c.tar.gz
tor-be874358a4385d8d6bd7f82d3f372bb79055033c.zip
wrap strdup; prefer time() to gettimeofday()
svn:r538
Diffstat (limited to 'src/or/cpuworker.c')
-rw-r--r--src/or/cpuworker.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/cpuworker.c b/src/or/cpuworker.c
index 1b9e5d8d1b..85ba9ec1a2 100644
--- a/src/or/cpuworker.c
+++ b/src/or/cpuworker.c
@@ -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.");