Run fmt.sh

This commit is contained in:
jD91mZM2
2018-07-08 08:51:15 +02:00
parent d3f6985ee9
commit 30d91b82b2
8 changed files with 88 additions and 27 deletions
+10 -2
View File
@@ -10,7 +10,11 @@ use core::ptr;
use platform::types::*;
#[no_mangle]
pub unsafe extern "C" fn bcmp(mut first: *const c_void, mut second: *const c_void, n: size_t) -> c_int {
pub unsafe extern "C" fn bcmp(
mut first: *const c_void,
mut second: *const c_void,
n: size_t,
) -> c_int {
let first = first as *const c_char;
let second = second as *const c_char;
@@ -111,7 +115,11 @@ pub unsafe extern "C" fn strcasecmp(mut first: *const c_char, mut second: *const
(*first == *second) as c_int
}
#[no_mangle]
pub unsafe extern "C" fn strncasecmp(mut first: *const c_char, mut second: *const c_char, mut n: size_t) -> c_int {
pub unsafe extern "C" fn strncasecmp(
mut first: *const c_char,
mut second: *const c_char,
mut n: size_t,
) -> c_int {
while *first != 0 && *second != 0 && n > 0 {
let mut i = *first;
let mut j = *second;