diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/lib.rs | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -144,8 +144,8 @@ pub mod ioctl ioctl( fd.as_raw_fd(), KDSETLED, - std::mem::transmute::<&libc::c_ulong, *const libc::c_void>( - &leds, + std::mem::transmute::<libc::c_ulong, *const libc::c_void>( + leds, ), ) } @@ -185,8 +185,8 @@ pub mod ioctl ioctl( fd.as_raw_fd(), KDSKBLED, - std::mem::transmute::<&libc::c_ulong, *const libc::c_void>( - &flags, + std::mem::transmute::<libc::c_ulong, *const libc::c_void>( + flags, ), ) } @@ -205,7 +205,6 @@ pub mod ioctl })?; //assert_eq(kb, KB_101); /* XXX */ - Ok(kb) } } |