Browse Source

Format via rustfmt

pull/4/head
AzureMarker 3 years ago
parent
commit
409c7a0a17
No known key found for this signature in database
GPG Key ID: 47A133F3BF9D03D3
  1. 9
      src/lib.rs

9
src/lib.rs

@ -1,7 +1,11 @@ @@ -1,7 +1,11 @@
extern crate libc;
#[no_mangle]
extern "C" fn posix_memalign(memptr: *mut *mut libc::c_void, align: libc::size_t, size: libc::size_t) -> libc::c_int {
extern "C" fn posix_memalign(
memptr: *mut *mut libc::c_void,
align: libc::size_t,
size: libc::size_t,
) -> libc::c_int {
unsafe {
*memptr = libc::memalign(align, size);
}
@ -9,11 +13,10 @@ extern "C" fn posix_memalign(memptr: *mut *mut libc::c_void, align: libc::size_t @@ -9,11 +13,10 @@ extern "C" fn posix_memalign(memptr: *mut *mut libc::c_void, align: libc::size_t
0
}
#[no_mangle]
unsafe extern "C" fn realpath(
path: *const libc::c_char,
resolved_path: *mut libc::c_char
resolved_path: *mut libc::c_char,
) -> *mut libc::c_char {
libc::memcpy(resolved_path as _, path as _, libc::strlen(path));

Loading…
Cancel
Save