[tor-commits] [tor/master] rust: Remove #[no_mangle]s on two constants.
nickm at torproject.org
nickm at torproject.org
Mon Mar 19 21:20:46 UTC 2018
commit 547c62840e2fc2700ac917dfdc4e6e451e5c1359
Author: Isis Lovecruft <isis at torproject.org>
Date: Tue Feb 27 21:01:17 2018 +0000
rust: Remove #[no_mangle]s on two constants.
These won't/shouldn't ever be called from C, so there's no reason to
preserve naming.
---
src/rust/tor_log/tor_log.rs | 2 --
1 file changed, 2 deletions(-)
diff --git a/src/rust/tor_log/tor_log.rs b/src/rust/tor_log/tor_log.rs
index df032c51f..1fdc0026b 100644
--- a/src/rust/tor_log/tor_log.rs
+++ b/src/rust/tor_log/tor_log.rs
@@ -97,7 +97,6 @@ pub mod log {
/// Severity log types. These mirror definitions in /src/common/torlog.h
/// C_RUST_COUPLED: src/common/log.c, log domain types
extern "C" {
- #[no_mangle]
static LOG_WARN_: c_int;
static LOG_NOTICE_: c_int;
}
@@ -105,7 +104,6 @@ pub mod log {
/// Domain log types. These mirror definitions in /src/common/torlog.h
/// C_RUST_COUPLED: src/common/log.c, log severity types
extern "C" {
- #[no_mangle]
static LD_NET_: u32;
static LD_GENERAL_: u32;
}
More information about the tor-commits
mailing list