Skip to content

Commit

Permalink
style: remove _MAX* place holder constants
Browse files Browse the repository at this point in the history
  • Loading branch information
tesuji committed May 19, 2024
1 parent 9811881 commit cffe959
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 7 deletions.
1 change: 0 additions & 1 deletion src/unix/bsd/freebsdlike/dragonfly/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1533,7 +1533,6 @@ pub const RTM_VERSION: ::c_int = 7;
pub const RTAX_MPLS1: ::c_int = 8;
pub const RTAX_MPLS2: ::c_int = 9;
pub const RTAX_MPLS3: ::c_int = 10;
pub const RTAX_MAX: ::c_int = 11;

const_fn! {
{const} fn _CMSG_ALIGN(n: usize) -> usize {
Expand Down
4 changes: 0 additions & 4 deletions src/unix/bsd/freebsdlike/freebsd/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4559,10 +4559,6 @@ pub const CPU_WHICH_JAIL: ::c_int = 5;
pub const RTF_LLDATA: ::c_int = 0x400;
pub const RTF_FIXEDMTU: ::c_int = 0x80000;

pub const RTM_VERSION: ::c_int = 5;

pub const RTAX_MAX: ::c_int = 8;

// sys/signal.h
pub const SIGTHR: ::c_int = 32;
pub const SIGLWP: ::c_int = SIGTHR;
Expand Down
1 change: 0 additions & 1 deletion src/unix/bsd/netbsdlike/netbsd/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2439,7 +2439,6 @@ pub const RTM_CHGADDR: ::c_int = 0x18;
pub const RTA_TAG: ::c_int = 0x100;

pub const RTAX_TAG: ::c_int = 8;
pub const RTAX_MAX: ::c_int = 9;

cfg_if! {

Expand Down
1 change: 0 additions & 1 deletion src/unix/bsd/netbsdlike/openbsd/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1962,7 +1962,6 @@ pub const RTAX_BFD: ::c_int = 11;
pub const RTAX_DNS: ::c_int = 12;
pub const RTAX_STATIC: ::c_int = 13;
pub const RTAX_SEARCH: ::c_int = 14;
pub const RTAX_MAX: ::c_int = 15;

const_fn! {
{const} fn _ALIGN(p: usize) -> usize {
Expand Down

0 comments on commit cffe959

Please sign in to comment.