We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d299baf + d4b7bda commit 375fe17Copy full SHA for 375fe17
src/liblibc/lib.rs
@@ -4633,7 +4633,7 @@ pub mod funcs {
4633
option_len: socklen_t) -> c_int;
4634
pub fn recv(socket: c_int, buf: *mut c_void, len: size_t,
4635
flags: c_int) -> ssize_t;
4636
- pub fn send(socket: c_int, buf: *mut c_void, len: size_t,
+ pub fn send(socket: c_int, buf: *const c_void, len: size_t,
4637
4638
pub fn recvfrom(socket: c_int, buf: *mut c_void, len: size_t,
4639
flags: c_int, addr: *mut sockaddr,
@@ -4673,7 +4673,7 @@ pub mod funcs {
4673
pub fn closesocket(socket: SOCKET) -> c_int;
4674
pub fn recv(socket: SOCKET, buf: *mut c_void, len: c_int,
4675
flags: c_int) -> c_int;
4676
- pub fn send(socket: SOCKET, buf: *mut c_void, len: c_int,
+ pub fn send(socket: SOCKET, buf: *const c_void, len: c_int,
4677
4678
pub fn recvfrom(socket: SOCKET, buf: *mut c_void, len: c_int,
4679
src/libnative/io/file_unix.rs
@@ -303,7 +303,7 @@ impl rtio::RtioFileStream for CFile {
303
self.flush().and_then(|()| self.fd.fsync())
304
}
305
fn datasync(&mut self) -> IoResult<()> {
306
- self.flush().and_then(|()| self.fd.fsync())
+ self.flush().and_then(|()| self.fd.datasync())
307
308
fn truncate(&mut self, offset: i64) -> IoResult<()> {
309
self.flush().and_then(|()| self.fd.truncate(offset))
src/libnative/io/net.rs
@@ -337,7 +337,7 @@ impl rtio::RtioTcpStream for TcpStream {
337
let dowrite = |nb: bool, buf: *const u8, len: uint| unsafe {
338
let flags = if nb {c::MSG_DONTWAIT} else {0};
339
libc::send(fd,
340
- buf as *mut libc::c_void,
+ buf as *const _,
341
len as wrlen,
342
flags) as i64
343
};
src/libnative/io/pipe_unix.rs
@@ -173,7 +173,7 @@ impl rtio::RtioPipe for UnixStream {
173
174
175
176
177
len as libc::size_t,
178
179
0 commit comments