Skip to content

Commit

Permalink
Merge pull request Smithay#12 from a1ien/patch-1
Browse files Browse the repository at this point in the history
Fix name type for monitor_new_from_netlink call
  • Loading branch information
Drakulix authored Mar 11, 2020
2 parents 065bf8e + 2648408 commit 63cf882
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;

// Hack. We use this because old version libudev check udev arg by null ptr and return error
// if udev eq nullptr. In current version first argument unused
Expand Down

0 comments on commit 63cf882

Please sign in to comment.