Skip to content
Snippets Groups Projects
Commit 23b2eb25 authored by Peter Limkilde Svendsen's avatar Peter Limkilde Svendsen
Browse files

Avoid assuming c_char is i8

parent 5af8e3ca
No related branches found
No related tags found
No related merge requests found
Pipeline #8364 passed with warnings
...@@ -72,7 +72,7 @@ pub struct sigevent; ...@@ -72,7 +72,7 @@ pub struct sigevent;
#[no_mangle] #[no_mangle]
pub unsafe extern "C" fn asctime(timeptr: *const tm) -> *mut c_char { pub unsafe extern "C" fn asctime(timeptr: *const tm) -> *mut c_char {
asctime_r(timeptr, &mut ASCTIME as *mut [i8; 26] as *mut i8) asctime_r(timeptr, ASCTIME.as_mut_ptr().cast())
} }
#[no_mangle] #[no_mangle]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment