Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use std::os::raw::c_int and remove our own type alias #143

Merged
merged 1 commit into from
Aug 29, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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