Browse Source

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.
Isis Lovecruft 6 years ago
parent
commit
547c62840e
1 changed files with 0 additions and 2 deletions
  1. 0 2
      src/rust/tor_log/tor_log.rs

+ 0 - 2
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;
     }