diff options
| author | bors <bors@rust-lang.org> | 2014-09-25 12:02:52 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-09-25 12:02:52 +0000 |
| commit | 375fe17218965e77ed46ab458da53cb90e2e83f5 (patch) | |
| tree | 5439a027a50a20a2ad4407e631c405b470098f35 /src/liblibc/lib.rs | |
| parent | d299bafb31a7c0528e690e48ec6d5591f1eb0bac (diff) | |
| parent | d4b7bdae33fbd80da27b02d40211e926fff7ac6d (diff) | |
| download | rust-375fe17218965e77ed46ab458da53cb90e2e83f5.tar.gz rust-375fe17218965e77ed46ab458da53cb90e2e83f5.zip | |
auto merge of #17497 : nodakai/rust/libnative-misc-fixes, r=alexcrichton
libnative/io: datasync() wrongly called fsync(). liblibc and libnative: send() should use const buffers.
Diffstat (limited to 'src/liblibc/lib.rs')
| -rw-r--r-- | src/liblibc/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/liblibc/lib.rs b/src/liblibc/lib.rs index 35b05a672b2..494c98bc54d 100644 --- a/src/liblibc/lib.rs +++ b/src/liblibc/lib.rs @@ -4633,7 +4633,7 @@ pub mod funcs { option_len: socklen_t) -> c_int; pub fn recv(socket: c_int, buf: *mut c_void, len: size_t, flags: c_int) -> ssize_t; - 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, flags: c_int) -> ssize_t; pub fn recvfrom(socket: c_int, buf: *mut c_void, len: size_t, flags: c_int, addr: *mut sockaddr, @@ -4673,7 +4673,7 @@ pub mod funcs { pub fn closesocket(socket: SOCKET) -> c_int; pub fn recv(socket: SOCKET, buf: *mut c_void, len: c_int, flags: c_int) -> c_int; - pub fn send(socket: SOCKET, buf: *mut c_void, len: c_int, + pub fn send(socket: SOCKET, buf: *const c_void, len: c_int, flags: c_int) -> c_int; pub fn recvfrom(socket: SOCKET, buf: *mut c_void, len: c_int, flags: c_int, addr: *mut sockaddr, |
