summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPhilipp Gesang <phg@phi-gamma.net>2021-12-22 18:16:10 +0100
committerPhilipp Gesang <phg@phi-gamma.net>2021-12-22 18:16:19 +0100
commitd5e13f6c13641a7a7f3e9169ca0bdf20ed08e2e6 (patch)
tree529ae63cab0ccfd74be821f6aad170b55eaa6b81 /src
parentbb6e409e3a5f8d1b2d92eb7c5a3c4de73ea42985 (diff)
downloadvtcol-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.rs9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 374b518..5032f68 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -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)
}
}