Finally, get rid of all rust warnings
Just a small step along the way to reduce the massive wall of spam every time you compile. This was done partly automagically with `cargo fix`. The rest was me deleting or commenting out a bunch of variables. Hope nothing was important...
This commit is contained in:
@@ -3,11 +3,11 @@ use super::super::PalSocket;
|
||||
use super::{e, Sys};
|
||||
use header::sys_socket::{sockaddr, socklen_t};
|
||||
|
||||
impl Sys {
|
||||
fn socketpair(domain: c_int, kind: c_int, protocol: c_int, socket_vector: *mut c_int) -> c_int {
|
||||
e(unsafe { syscall!(SOCKETPAIR, domain, kind, protocol, socket_vector) }) as c_int
|
||||
}
|
||||
}
|
||||
//impl Sys {
|
||||
// fn socketpair(domain: c_int, kind: c_int, protocol: c_int, socket_vector: *mut c_int) -> c_int {
|
||||
// e(unsafe { syscall!(SOCKETPAIR, domain, kind, protocol, socket_vector) }) as c_int
|
||||
// }
|
||||
//}
|
||||
|
||||
impl PalSocket for Sys {
|
||||
unsafe fn accept(socket: c_int, address: *mut sockaddr, address_len: *mut socklen_t) -> c_int {
|
||||
|
||||
Reference in New Issue
Block a user