melib/datetime: use type alias for c_char

On arm64, it's u8, not i8.

Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
pull/318/head
Manos Pitsidianakis 2023-12-03 17:23:11 +02:00
parent 71f3ffe740
commit 63a63253d7
Signed by: Manos Pitsidianakis
GPG Key ID: 7729C7707F7E09D0
1 changed files with 3 additions and 1 deletions

View File

@ -790,7 +790,9 @@ mod tests {
#[test]
fn test_datetime_rfcs() {
if unsafe { libc::setlocale(libc::LC_ALL, b"\0".as_ptr() as *const i8) }.is_null() {
if unsafe { libc::setlocale(libc::LC_ALL, b"\0".as_ptr() as *const core::ffi::c_char) }
.is_null()
{
eprintln!("Unable to set locale.");
}
/* Some tests were lazily stolen from https://rachelbythebay.com/w/2013/06/11/time/ */