Skip to content
Snippets Groups Projects
Verified Commit 7251fc7c authored by Jeremy Soller's avatar Jeremy Soller
Browse files

Fix type error after fcntl redefinition

parent 7d9cd5ab
No related branches found
No related tags found
No related merge requests found
......@@ -63,7 +63,7 @@ fn dup_write<T>(fd: c_int, name: &str, t: &T) -> syscall::Result<usize> {
pub unsafe extern "C" fn ioctl(fd: c_int, request: c_ulong, out: *mut c_void) -> c_int {
match request {
FIONBIO => {
let mut flags = fcntl::sys_fcntl(fd, fcntl::F_GETFL, 0usize);
let mut flags = fcntl::sys_fcntl(fd, fcntl::F_GETFL, 0);
if flags < 0 {
return -1;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment