diff options
author | gnzlbg <gonzalobg88@gmail.com> | 2019-09-12 15:12:33 +0200 |
---|---|---|
committer | gnzlbg <gonzalobg88@gmail.com> | 2019-09-12 15:12:33 +0200 |
commit | 939a2e5a3a03bf303db7a04ab3d2d686f4626241 (patch) | |
tree | 954c453884190114e7a71150349a59904c54ecd2 /src/unix/bsd/freebsdlike/freebsd/freebsd11/mod.rs | |
parent | c25c36025dbc1f3073d365c4d254de5bbb570e6f (diff) | |
download | rust-libc-939a2e5a3a03bf303db7a04ab3d2d686f4626241.tar.gz |
Formatting
Diffstat (limited to 'src/unix/bsd/freebsdlike/freebsd/freebsd11/mod.rs')
-rw-r--r-- | src/unix/bsd/freebsdlike/freebsd/freebsd11/mod.rs | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/src/unix/bsd/freebsdlike/freebsd/freebsd11/mod.rs b/src/unix/bsd/freebsdlike/freebsd/freebsd11/mod.rs index b71b284e42..79a152fc85 100644 --- a/src/unix/bsd/freebsdlike/freebsd/freebsd11/mod.rs +++ b/src/unix/bsd/freebsdlike/freebsd/freebsd11/mod.rs @@ -191,21 +191,29 @@ cfg_if! { pub const ELAST: ::c_int = 96; -extern { +extern "C" { // Return type ::c_int was removed in FreeBSD 12 pub fn setgrent() -> ::c_int; // Type of `addr` argument changed from `const void*` to `void*` // in FreeBSD 12 - pub fn mprotect(addr: *const ::c_void, len: ::size_t, prot: ::c_int) - -> ::c_int; + pub fn mprotect( + addr: *const ::c_void, + len: ::size_t, + prot: ::c_int, + ) -> ::c_int; // Return type ::c_int was removed in FreeBSD 12 pub fn freelocale(loc: ::locale_t) -> ::c_int; // Return type ::c_int changed to ::ssize_t in FreeBSD 12: - pub fn msgrcv(msqid: ::c_int, msgp: *mut ::c_void, msgsz: ::size_t, - msgtyp: ::c_long, msgflg: ::c_int) -> ::c_int; + pub fn msgrcv( + msqid: ::c_int, + msgp: *mut ::c_void, + msgsz: ::size_t, + msgtyp: ::c_long, + msgflg: ::c_int, + ) -> ::c_int; } cfg_if! { |