Skip to content

Commit

Permalink
Fix name type for monitor_new_from_netlink call
Browse files Browse the repository at this point in the history
  • Loading branch information
a1ien committed Mar 10, 2020
1 parent da07a27 commit 2648408
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/monitor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ as_ffi!(Builder, monitor, ffi::udev_monitor);
impl Builder {
/// Creates a new `Monitor`.
pub fn new() -> Result<Self> {
let name = b"udev\0".as_ptr() as *const i8;
let name = b"udev\0".as_ptr() as *const libc::c_char;

let ptr = try_alloc!(unsafe { ffi::udev_monitor_new_from_netlink(ptr::null_mut(), name) });

Expand Down

0 comments on commit 2648408

Please sign in to comment.