mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 13:13:44 +01:00
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.
This commit is contained in:
parent
167da4bc81
commit
547c62840e
@ -97,7 +97,6 @@ pub mod log {
|
|||||||
/// Severity log types. These mirror definitions in /src/common/torlog.h
|
/// Severity log types. These mirror definitions in /src/common/torlog.h
|
||||||
/// C_RUST_COUPLED: src/common/log.c, log domain types
|
/// C_RUST_COUPLED: src/common/log.c, log domain types
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#[no_mangle]
|
|
||||||
static LOG_WARN_: c_int;
|
static LOG_WARN_: c_int;
|
||||||
static LOG_NOTICE_: 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
|
/// Domain log types. These mirror definitions in /src/common/torlog.h
|
||||||
/// C_RUST_COUPLED: src/common/log.c, log severity types
|
/// C_RUST_COUPLED: src/common/log.c, log severity types
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#[no_mangle]
|
|
||||||
static LD_NET_: u32;
|
static LD_NET_: u32;
|
||||||
static LD_GENERAL_: u32;
|
static LD_GENERAL_: u32;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user