From 6f27a2dfa7de20446771d3454e13b3a5f492f89c Mon Sep 17 00:00:00 2001 From: iximeow Date: Sun, 2 Jul 2023 20:49:36 -0700 Subject: use the platform-generic c_char, instead of i8/u8 WHICH I GUESS VARIES BETWEEN x86 AND aarch64 --- src/ci_runner.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ci_runner.rs b/src/ci_runner.rs index eba4a18..3b4b5a4 100644 --- a/src/ci_runner.rs +++ b/src/ci_runner.rs @@ -519,7 +519,7 @@ mod host_info { fn hostname() -> String { let mut bytes = [0u8; 4096]; let res = unsafe { - libc::gethostname(bytes.as_mut_ptr() as *mut i8, bytes.len()) + libc::gethostname(bytes.as_mut_ptr() as *mut std::ffi::c_char, bytes.len()) }; if res != 0 { panic!("gethostname failed {:?}", res); -- cgit v1.1