Skip to content

Commit

Permalink
Re-export std::os::raw::c_int instead of defining 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 0624d17
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/os/kqueue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,8 @@ impl<T: Filter + ?Sized> Filter for &T {}
#[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;
#[doc(no_inline)]
pub use std::os::raw::c_int;

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

0 comments on commit 0624d17

Please sign in to comment.