Skip to content

Commit cfcd249

Browse files
author
Conrad Kramer
committed
Change the readwrite buf ioctl call to use a *mut pointer
1 parent 6c7418a commit cfcd249

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sys/ioctl/platform/linux.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ macro_rules! ioctl {
141141
);
142142
(readwrite buf $name:ident with $ioty:expr, $nr:expr; $ty:ty) => (
143143
pub unsafe fn $name(fd: $crate::sys::ioctl::libc::c_int,
144-
val: *const $ty,
144+
val: *mut $ty,
145145
len: usize)
146146
-> $crate::Result<$crate::sys::ioctl::libc::c_int> {
147147
convert_ioctl_res!($crate::sys::ioctl::ioctl(fd, iorw!($ioty, $nr, len) as $crate::sys::ioctl::libc::c_ulong, val))

0 commit comments

Comments
 (0)