Skip to content

Commit

Permalink
Use std::os::raw::c_int and remove our own type alias
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Aug 29, 2023
1 parent d8595b5 commit 9a3fe18
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/os/kqueue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,11 +135,7 @@ impl<T: Filter + ?Sized> Filter for &T {}
/// No matter what `PollMode` is specified, this filter will always be
/// oneshot-only.
#[derive(Debug, Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
pub struct Signal(pub c_int);

/// Alias for `libc::c_int`.
#[allow(non_camel_case_types)]
pub type c_int = i32;
pub struct Signal(pub std::os::raw::c_int);

unsafe impl FilterSealed for Signal {
#[inline(always)]
Expand Down

0 comments on commit 9a3fe18

Please sign in to comment.