diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/ci_runner.rs | 2 |
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); |