Skip to content

Commit

Permalink
Fix coding style.
Browse files Browse the repository at this point in the history
  • Loading branch information
ColinFinck committed Jul 31, 2018
1 parent 5801a08 commit 086bdf9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
17 changes: 12 additions & 5 deletions src/unix/hermit/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -696,22 +696,29 @@ f! {
}

extern {
pub fn bind(s: ::c_int, name: *const ::sockaddr, namelen: ::socklen_t) -> ::c_int;
pub fn bind(s: ::c_int, name: *const ::sockaddr, namelen: ::socklen_t)
-> ::c_int;

pub fn clock_gettime(clock_id: ::clockid_t, tp: *mut ::timespec) -> ::c_int;

pub fn getpwuid_r(uid: ::uid_t, pwd: *mut passwd, buf: *mut ::c_char, buflen: ::size_t, result: *mut *mut passwd) -> ::c_int;
pub fn getpwuid_r(uid: ::uid_t, pwd: *mut passwd, buf: *mut ::c_char,
buflen: ::size_t, result: *mut *mut passwd) -> ::c_int;

// Dummy
pub fn ioctl(fd: ::c_int, request: ::c_int, ...) -> ::c_int;

pub fn memalign(align: ::size_t, nbytes: ::size_t) -> *mut ::c_void;

pub fn pthread_create(tid: *mut ::pthread_t, attr: *const ::pthread_attr_t, start: extern fn(*mut ::c_void) -> *mut ::c_void, arg: *mut ::c_void) -> ::c_int;
pub fn pthread_create(tid: *mut ::pthread_t, attr: *const ::pthread_attr_t,
start: extern fn(*mut ::c_void) -> *mut ::c_void, arg: *mut ::c_void)
-> ::c_int;

pub fn pthread_sigmask(how: ::c_int, set: *const ::sigset_t, oset: *mut ::sigset_t) -> ::c_int;
pub fn pthread_sigmask(how: ::c_int, set: *const ::sigset_t,
oset: *mut ::sigset_t) -> ::c_int;

pub fn recvfrom(s: ::c_int, mem: *mut ::c_void, len: ::size_t, flags: ::c_int, from: *mut ::sockaddr, fromlen: *mut ::socklen_t) -> ::c_int;
pub fn recvfrom(s: ::c_int, mem: *mut ::c_void, len: ::size_t,
flags: ::c_int, from: *mut ::sockaddr, fromlen: *mut ::socklen_t)
-> ::c_int;

pub fn setgroups(ngroups: ::c_int, grouplist: *const ::gid_t) -> ::c_int;
}
Expand Down
2 changes: 1 addition & 1 deletion src/unix/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -973,7 +973,7 @@ cfg_if! {
} else if #[cfg(target_os = "haiku")] {
mod haiku;
pub use self::haiku::*;
} else if #[cfg(target_os = "hermit")] {
} else if #[cfg(target_os = "hermit")] {
mod hermit;
pub use self::hermit::*;
} else {
Expand Down

0 comments on commit 086bdf9

Please sign in to comment.