aboutsummaryrefslogtreecommitdiff
path: root/src/common/log.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/common/log.c
parentf563bbd2f988cd1f6ca292f89a47a86f98fe0e8d (diff)
downloadtor-be874358a4385d8d6bd7f82d3f372bb79055033c.tar
tor-be874358a4385d8d6bd7f82d3f372bb79055033c.tar.gz
wrap strdup; prefer time() to gettimeofday()
svn:r538
Diffstat (limited to 'src/common/log.c')
-rw-r--r--src/common/log.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/log.c b/src/common/log.c
index 81a709157..70646201a 100644
--- a/src/common/log.c
+++ b/src/common/log.c
@@ -40,7 +40,7 @@ static INLINE void format_msg(char *buf, size_t buf_len,
buf_len -= 2; /* subtract 2 characters so we have room for \n\0 */
- my_gettimeofday(&now);
+ tor_gettimeofday(&now);
t = (time_t)now.tv_sec;
n = strftime(buf, buf_len, "%b %d %H:%M:%S", localtime(&t));