Skip to content

Commit

Permalink
drop unnecessary no_mangle annotations on non-exported functions
Browse files Browse the repository at this point in the history
  • Loading branch information
apoelstra committed Dec 29, 2020
1 parent 58f946f commit d12be79
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions secp256k1-sys/src/lib.rs
Expand Up @@ -626,7 +626,6 @@ pub unsafe extern "C" fn rustsecp256k1_v0_4_0_default_error_callback_fn(message:
panic!("[libsecp256k1] internal consistency check failed {}", msg);
}

#[no_mangle]
#[cfg(not(rust_secp_no_symbol_renaming))]
unsafe fn strlen(mut str_ptr: *const c_char) -> usize {
let mut ctr = 0;
Expand Down Expand Up @@ -761,7 +760,6 @@ pub use self::fuzz_dummy::*;

#[cfg(test)]
mod tests {
#[no_mangle]
#[cfg(not(rust_secp_no_symbol_renaming))]
#[test]
fn test_strlen() {
Expand Down

0 comments on commit d12be79

Please sign in to comment.