fix no_mangle annotation missing

This commit is contained in:
David Carlier
2023-04-26 19:42:29 +01:00
parent 30996e353b
commit eb87e2b796
3 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -356,7 +356,7 @@ pub unsafe extern "C" fn getenv(name: *const c_char) -> *mut c_char {
find_env(name).map(|val| val.1).unwrap_or(ptr::null_mut())
}
// #[no_mangle]
#[no_mangle]
pub unsafe extern "C" fn getsubopt(
optionp: *mut *mut c_char,
tokens: *const *mut c_char,
@@ -1213,7 +1213,7 @@ pub extern "C" fn ttyslot() -> c_int {
unimplemented!();
}
// #[no_mangle]
#[no_mangle]
pub unsafe extern "C" fn unlockpt(fildes: c_int) -> c_int {
let mut u: c_int = 0;
ioctl(fildes, TIOCSPTLCK, &mut u as *mut i32 as *mut c_void)