summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2023-07-02 20:49:36 -0700
committeriximeow <me@iximeow.net>2023-07-02 20:49:36 -0700
commit6f27a2dfa7de20446771d3454e13b3a5f492f89c (patch)
tree828cd4e9c786f19fa36f7bfcbc4ae0b4fd5407cc
parent0e331903f85a7c525db6ac982968d0226d74d281 (diff)
use the platform-generic c_char, instead of i8/u8 WHICH I GUESS VARIES BETWEEN x86 AND aarch64
-rw-r--r--src/ci_runner.rs2
1 files changed, 1 insertions, 1 deletions
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);