Skip to content

Commit 086bdf9

Browse files
committed
Fix coding style.
1 parent 5801a08 commit 086bdf9

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

src/unix/hermit/mod.rs

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -696,22 +696,29 @@ f! {
696696
}
697697

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

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

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

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

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

710-
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;
712+
pub fn pthread_create(tid: *mut ::pthread_t, attr: *const ::pthread_attr_t,
713+
start: extern fn(*mut ::c_void) -> *mut ::c_void, arg: *mut ::c_void)
714+
-> ::c_int;
711715

712-
pub fn pthread_sigmask(how: ::c_int, set: *const ::sigset_t, oset: *mut ::sigset_t) -> ::c_int;
716+
pub fn pthread_sigmask(how: ::c_int, set: *const ::sigset_t,
717+
oset: *mut ::sigset_t) -> ::c_int;
713718

714-
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;
719+
pub fn recvfrom(s: ::c_int, mem: *mut ::c_void, len: ::size_t,
720+
flags: ::c_int, from: *mut ::sockaddr, fromlen: *mut ::socklen_t)
721+
-> ::c_int;
715722

716723
pub fn setgroups(ngroups: ::c_int, grouplist: *const ::gid_t) -> ::c_int;
717724
}

src/unix/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -973,7 +973,7 @@ cfg_if! {
973973
} else if #[cfg(target_os = "haiku")] {
974974
mod haiku;
975975
pub use self::haiku::*;
976-
} else if #[cfg(target_os = "hermit")] {
976+
} else if #[cfg(target_os = "hermit")] {
977977
mod hermit;
978978
pub use self::hermit::*;
979979
} else {

0 commit comments

Comments
 (0)