Skip to content

Commit

Permalink
remvoe unnecessary no_mangle from strlen
Browse files Browse the repository at this point in the history
  • Loading branch information
apoelstra committed Dec 22, 2020
1 parent dfbc345 commit 2c872d5
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion secp256k1-sys/src/lib.rs
Expand Up @@ -629,7 +629,6 @@ pub unsafe extern "C" fn rustsecp256k1_v0_3_1_default_error_callback_fn(message:
panic!("[libsecp256k1] internal consistency check failed {}", msg);
}

#[no_mangle]
unsafe fn strlen(mut str_ptr: *const c_char) -> usize {
let mut ctr = 0;
while *str_ptr != '\0' as c_char {
Expand Down

0 comments on commit 2c872d5

Please sign in to comment.