tor

The Tor anonymity network
git clone https://git.dasho.dev/tor.git
Log | Files | Refs | README | LICENSE

commit 547c62840e2fc2700ac917dfdc4e6e451e5c1359
parent 167da4bc81da7de0214357cbe08404703bc8c86a
Author: Isis Lovecruft <isis@torproject.org>
Date:   Tue, 27 Feb 2018 21:01:17 +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.

Diffstat:
Msrc/rust/tor_log/tor_log.rs | 2--
1 file changed, 0 insertions(+), 2 deletions(-)

diff --git 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; }