We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 548e14b commit 7aa76a7Copy full SHA for 7aa76a7
library/std/src/sys/pal/unix/net.rs
@@ -459,7 +459,7 @@ impl Socket {
459
const AF_NAME_MAX: usize = 16;
460
let mut buf = [0; AF_NAME_MAX];
461
for (src, dst) in name.to_bytes().iter().zip(&mut buf[..AF_NAME_MAX - 1]) {
462
- *dst = *src as i8;
+ *dst = *src as libc::c_char;
463
}
464
let mut arg: libc::accept_filter_arg = unsafe { mem::zeroed() };
465
arg.af_name = buf;
0 commit comments