diff options
author | Philipp Gesang <phg@phi-gamma.net> | 2021-12-22 18:16:10 +0100 |
---|---|---|
committer | Philipp Gesang <phg@phi-gamma.net> | 2021-12-22 18:16:19 +0100 |
commit | d5e13f6c13641a7a7f3e9169ca0bdf20ed08e2e6 (patch) | |
tree | 529ae63cab0ccfd74be821f6aad170b55eaa6b81 /src | |
parent | bb6e409e3a5f8d1b2d92eb7c5a3c4de73ea42985 (diff) | |
download | vtcol-d5e13f6c13641a7a7f3e9169ca0bdf20ed08e2e6.tar.gz |
lib: fix ioctl argp cast
The argument is not a pointer-to-ulong but itself an ulong, duh!
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) } } |