diff options
author | Nick Mathewson <nickm@torproject.org> | 2019-07-19 10:07:32 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2019-07-19 10:07:32 -0400 |
commit | f682de609b456ccfdb19aef1a1afa8c0873ceb51 (patch) | |
tree | 348d736354bc10a2df770bf726401d67ea616191 /src | |
parent | 2e55fa9587ffd8e988229fe127881289d9271c32 (diff) | |
download | tor-f682de609b456ccfdb19aef1a1afa8c0873ceb51.tar.gz tor-f682de609b456ccfdb19aef1a1afa8c0873ceb51.zip |
Adjust tor_log.rs for 64-bit log domains.
Diffstat (limited to 'src')
-rw-r--r-- | src/rust/tor_log/tor_log.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/rust/tor_log/tor_log.rs b/src/rust/tor_log/tor_log.rs index 98fccba5a9..bbaf97129c 100644 --- a/src/rust/tor_log/tor_log.rs +++ b/src/rust/tor_log/tor_log.rs @@ -99,14 +99,14 @@ pub mod log { /// Domain log types. These mirror definitions in src/lib/log/log.h /// C_RUST_COUPLED: src/lib/log/log.c, log severity types extern "C" { - static LD_NET_: u32; - static LD_GENERAL_: u32; + static LD_NET_: u64; + static LD_GENERAL_: u64; } /// Translate Rust defintions of log domain levels to C. This exposes a 1:1 /// mapping between types. #[inline] - pub unsafe fn translate_domain(domain: LogDomain) -> u32 { + pub unsafe fn translate_domain(domain: LogDomain) -> u64 { match domain { LogDomain::Net => LD_NET_, LogDomain::General => LD_GENERAL_, @@ -128,7 +128,7 @@ pub mod log { extern "C" { pub fn tor_log_string( severity: c_int, - domain: u32, + domain: u64, function: *const c_char, string: *const c_char, ); |