branch | stable |
changeset 48807 | 59be65b7cdfd |
parent 48463 | 5734b03ecf3e |
child 49750 | 29cf3167e459 |
--- a/rust/hg-core/src/lock.rs Tue Mar 01 16:39:14 2022 +0100 +++ b/rust/hg-core/src/lock.rs Mon Mar 14 14:10:41 2022 +0000 @@ -145,7 +145,7 @@ /// Same as https://github.com/python/cpython/blob/v3.10.0/Modules/socketmodule.c#L5414 const BUFFER_SIZE: usize = 1024; - let mut buffer = [0_i8; BUFFER_SIZE]; + let mut buffer = [0 as libc::c_char; BUFFER_SIZE]; let hostname_bytes = unsafe { let result = libc::gethostname(buffer.as_mut_ptr(), BUFFER_SIZE); if result != 0 {