summaryrefslogtreecommitdiff
path: root/src/common/torlog.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-03-19 19:18:23 -0400
committerNick Mathewson <nickm@torproject.org>2018-03-19 19:18:23 -0400
commit228b65593533a796243853f53109049ebc2b4efa (patch)
tree07f10602cf07afe105f6c50b3c5952cf88757b42 /src/common/torlog.h
parentd8893bc93c52e1edd0a76b81f5d65bb10d790474 (diff)
downloadtor-228b65593533a796243853f53109049ebc2b4efa.tar.gz
tor-228b65593533a796243853f53109049ebc2b4efa.zip
Move rust-specific declarations outside of #else block
These declarations need to exist unconditionally, but they were trapped inside an "#else /* !(defined(HAVE_SYSLOG_H)) */" block. Fixes a travis regression caused by 23881; bug not in any released tor.
Diffstat (limited to 'src/common/torlog.h')
-rw-r--r--src/common/torlog.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/common/torlog.h b/src/common/torlog.h
index a8b5604d84..ac632ff521 100644
--- a/src/common/torlog.h
+++ b/src/common/torlog.h
@@ -31,16 +31,6 @@
* "maximum severity" read "most severe" and "numerically *lowest* severity".
*/
-/** This defines log levels that are linked in the Rust log module, rather
- * than re-defining these in both Rust and C.
- *
- * C_RUST_COUPLED src/rust/tor_log LogSeverity, LogDomain
- */
-extern const int LOG_WARN_;
-extern const int LOG_NOTICE_;
-extern const log_domain_mask_t LD_NET_;
-extern const log_domain_mask_t LD_GENERAL_;
-
/** Debug-level severity: for hyper-verbose messages of no interest to
* anybody but developers. */
#define LOG_DEBUG 7
@@ -262,6 +252,16 @@ void tor_log_string(int severity, log_domain_mask_t domain,
args, ##__VA_ARGS__)
#endif /* defined(__GNUC__) && __GNUC__ <= 3 */
+/** This defines log levels that are linked in the Rust log module, rather
+ * than re-defining these in both Rust and C.
+ *
+ * C_RUST_COUPLED src/rust/tor_log LogSeverity, LogDomain
+ */
+extern const int LOG_WARN_;
+extern const int LOG_NOTICE_;
+extern const log_domain_mask_t LD_NET_;
+extern const log_domain_mask_t LD_GENERAL_;
+
#ifdef LOG_PRIVATE
MOCK_DECL(STATIC void, logv, (int severity, log_domain_mask_t domain,
const char *funcname, const char *suffix, const char *format,