Skip to content

Commit

Permalink
Revert "Fix a few other array size hacks"
Browse files Browse the repository at this point in the history
This reverts commit d63be8b.
  • Loading branch information
cramertj committed Nov 26, 2024
1 parent 7b80739 commit 24a8e7e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
9 changes: 2 additions & 7 deletions src/unix/bsd/freebsdlike/freebsd/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1144,7 +1144,7 @@ s! {
pub sinfo_assoc_id: ::sctp_assoc_t,
pub sinfo_keynumber: u16,
pub sinfo_keynumber_valid: u16,
pub __reserve_pad: [u8; SCTP_ALIGN_RESV_PAD],
pub __reserve_pad: [[u8; 23]; 4],
}

pub struct sctp_extrcvinfo {
Expand All @@ -1164,7 +1164,7 @@ s! {
pub serinfo_next_ppid: u32,
pub sinfo_keynumber: u16,
pub sinfo_keynumber_valid: u16,
pub __reserve_pad: [u8; SCTP_ALIGN_RESV_PAD_SHORT],
pub __reserve_pad: [[u8; 19]; 4],
}

pub struct sctp_sndinfo {
Expand Down Expand Up @@ -4865,11 +4865,6 @@ pub const SCTP_ASSOC_RESET_FAILED: ::c_int = 0x0008;
pub const SCTP_STREAM_CHANGE_DENIED: ::c_int = 0x0004;
pub const SCTP_STREAM_CHANGE_FAILED: ::c_int = 0x0008;

// sctp_uio.h

pub const SCTP_ALIGN_RESV_PAD: usize = 92;
pub const SCTP_ALIGN_RESV_PAD_SHORT: usize = 76;

pub const KENV_DUMP_LOADER: ::c_int = 4;
pub const KENV_DUMP_STATIC: ::c_int = 5;

Expand Down
2 changes: 1 addition & 1 deletion src/unix/bsd/netbsdlike/netbsd/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ s! {

pub struct accept_filter_arg {
pub af_name: [::c_char; 16],
pub af_arg: [::c_char; 256 - 16],
af_arg: [[::c_char; 10]; 24],
}

pub struct ki_sigset_t {
Expand Down

0 comments on commit 24a8e7e

Please sign in to comment.