diff options
author | Nick Mathewson <nickm@torproject.org> | 2008-12-30 04:16:49 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2008-12-30 04:16:49 +0000 |
commit | 52932d6f1a72b9cd3a0bd9571016fa763662d3d6 (patch) | |
tree | 29b3db3881b4bfb2bde2f1e79c6d9848088aaf5f /src/common/log.c | |
parent | ffe22fab9b81f4b0dea35bc2fb756d4a60cf3ed3 (diff) | |
download | tor-52932d6f1a72b9cd3a0bd9571016fa763662d3d6.tar.gz tor-52932d6f1a72b9cd3a0bd9571016fa763662d3d6.zip |
Remove some code that is #ifdefed out, and that we no longer seem to use, if we ever did.
svn:r17827
Diffstat (limited to 'src/common/log.c')
-rw-r--r-- | src/common/log.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/common/log.c b/src/common/log.c index f43181848f..78d439130c 100644 --- a/src/common/log.c +++ b/src/common/log.c @@ -95,12 +95,9 @@ should_log_function_name(log_domain_mask_t domain, int severity) } } -#define USE_LOG_MUTEX - -#ifdef USE_LOG_MUTEX /** A mutex to guard changes to logfiles and logging. */ static tor_mutex_t *log_mutex = NULL; -#endif + /** Linked list of logfile_t. */ static logfile_t *logfiles = NULL; #ifdef HAVE_SYSLOG_H @@ -109,15 +106,10 @@ static logfile_t *logfiles = NULL; static int syslog_count = 0; #endif -#ifdef USE_LOG_MUTEX #define LOCK_LOGS() STMT_BEGIN \ tor_mutex_acquire(log_mutex); \ STMT_END #define UNLOCK_LOGS() STMT_BEGIN tor_mutex_release(log_mutex); STMT_END -#else -#define LOCK_LOGS() STMT_NIL -#define UNLOCK_LOGS() STMT_NIL -#endif /** What's the lowest log level anybody cares about? Checking this lets us * bail out early from log_debug if we aren't debugging. */ |