Skip to content

Commit 04a0d64

Browse files
authored
Replace c::send with libc::send.
1 parent 722d083 commit 04a0d64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: library/std/src/os/unix/net/stream.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -665,7 +665,7 @@ impl<'a> io::Write for &'a UnixStream {
665665
fn write(&mut self, buf: &[u8]) -> io::Result<usize> {
666666
let len = cmp::min(buf.len(), <wrlen_t>::MAX as usize) as wrlen_t;
667667
let ret = cvt(unsafe {
668-
c::send(self.0.as_raw(), buf.as_ptr() as *const c_void, len, MSG_NOSIGNAL)
668+
libc::send(self.0.as_raw(), buf.as_ptr() as *const c_void, len, MSG_NOSIGNAL)
669669
})?;
670670
Ok(ret as usize)
671671
}

0 commit comments

Comments
 (0)