summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)
}
}