Skip to content

Commit

Permalink
Fixups with new script
Browse files Browse the repository at this point in the history
  • Loading branch information
tgross35 committed Nov 27, 2024
1 parent 0bb4dc3 commit bbda648
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions src/fixed_width_ints.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
//! This module contains type aliases for C's fixed-width integer types .
//!
//! These aliases are deprecated: use the Rust types instead.
use crate::prelude::*;

#[deprecated(since = "0.2.55", note = "Use i8 instead.")]
pub type int8_t = i8;
Expand Down
3 changes: 1 addition & 2 deletions src/teeos/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@
//! when linking is explicitly requested.
#![allow(non_camel_case_types)]
#![allow(non_snake_case)]

// only supported on Rust > 1.59, so we can directly reexport c_void from core.
pub use core::ffi::c_void;

use Option;
use crate::prelude::*;

pub type c_schar = i8;

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

pub(crate) const _ALIGNBYTES: usize = crate::mem::size_of::<c_long>() - 1;
pub(crate) const _ALIGNBYTES: usize = mem::size_of::<c_long>() - 1;

pub const PT_GETREGS: c_int = PT_FIRSTMACH + 0;
pub const PT_SETREGS: c_int = PT_FIRSTMACH + 1;
Expand Down
2 changes: 1 addition & 1 deletion src/unix/bsd/netbsdlike/openbsd/arm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ pub type c_long = i32;
pub type c_ulong = u32;
pub type c_char = u8;

pub(crate) const _ALIGNBYTES: usize = crate::mem::size_of::<c_double>() - 1;
pub(crate) const _ALIGNBYTES: usize = mem::size_of::<c_double>() - 1;

pub const _MAX_PAGE_SHIFT: u32 = 12;
2 changes: 2 additions & 0 deletions src/unix/bsd/netbsdlike/openbsd/powerpc64.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
use crate::prelude::*;

pub type c_long = i64;
pub type c_ulong = u64;
pub type c_char = u8;
Expand Down
3 changes: 1 addition & 2 deletions src/unix/redox/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,7 @@ s_no_extra_traits! {

pub struct sockaddr_storage {
pub ss_family: crate::sa_family_t,
__ss_padding:
[u8; 128 - crate::mem::size_of::<sa_family_t>() - crate::mem::size_of::<c_ulong>()],
__ss_padding: [u8; 128 - mem::size_of::<sa_family_t>() - mem::size_of::<c_ulong>()],
__ss_align: c_ulong,
}
}
Expand Down

0 comments on commit bbda648

Please sign in to comment.