Skip to content

Commit

Permalink
Fix style issues
Browse files Browse the repository at this point in the history
  • Loading branch information
AzureMarker committed Mar 14, 2022
1 parent 0c92066 commit f25ae98
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/unix/newlib/aarch64/mod.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
pub use crate::unix::newlib::generic::{sigset_t, stat};

pub type clock_t = ::c_long;
pub type c_char = u8;
pub type wchar_t = u32;
Expand Down Expand Up @@ -52,3 +50,5 @@ pub const MSG_DONTROUTE: ::c_int = 0;
pub const MSG_WAITALL: ::c_int = 0;
pub const MSG_MORE: ::c_int = 0;
pub const MSG_NOSIGNAL: ::c_int = 0;

pub use crate::unix::newlib::generic::{sigset_t, stat};
4 changes: 2 additions & 2 deletions src/unix/newlib/arm/mod.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
pub use crate::unix::newlib::generic::{sigset_t, stat};

pub type clock_t = ::c_long;
pub type c_char = u8;
pub type wchar_t = u32;
Expand Down Expand Up @@ -54,3 +52,5 @@ pub const MSG_DONTROUTE: ::c_int = 0;
pub const MSG_WAITALL: ::c_int = 0;
pub const MSG_MORE: ::c_int = 0;
pub const MSG_NOSIGNAL: ::c_int = 0;

pub use crate::unix::newlib::generic::{sigset_t, stat};
4 changes: 2 additions & 2 deletions src/unix/newlib/espidf/mod.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
pub use crate::unix::newlib::generic::{sigset_t, stat};

pub type clock_t = ::c_ulong;
pub type c_char = i8;
pub type wchar_t = u32;
Expand Down Expand Up @@ -103,3 +101,5 @@ extern "C" {
#[link_name = "lwip_recvmsg"]
pub fn recvmsg(s: ::c_int, msg: *mut ::msghdr, flags: ::c_int) -> ::ssize_t;
}

pub use crate::unix::newlib::generic::{sigset_t, stat};
1 change: 0 additions & 1 deletion src/unix/newlib/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,6 @@ s! {
pub tm_isdst: ::c_int,
}


pub struct statvfs {
pub f_bsize: ::c_ulong,
pub f_frsize: ::c_ulong,
Expand Down
4 changes: 2 additions & 2 deletions src/unix/newlib/powerpc/mod.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
pub use crate::unix::newlib::generic::{sigset_t, stat};

pub type clock_t = ::c_ulong;
pub type c_char = u8;
pub type wchar_t = ::c_int;

pub type c_long = i32;
pub type c_ulong = u32;

pub use crate::unix::newlib::generic::{sigset_t, stat};

// the newlib shipped with devkitPPC does not support the following components:
// - sockaddr
// - AF_INET6
Expand Down

0 comments on commit f25ae98

Please sign in to comment.