We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6b1f4e4 + 7aa76a7 commit a5852efCopy full SHA for a5852ef
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