From d07fa25e04a19ccb9aa25bb6e2156d23d213db77 Mon Sep 17 00:00:00 2001 From: Anton Kling Date: Tue, 28 Nov 2023 20:11:05 +0100 Subject: Meta: Apply new clang-format rules to kernel --- kernel/libc/string/memcmp.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'kernel/libc/string/memcmp.c') diff --git a/kernel/libc/string/memcmp.c b/kernel/libc/string/memcmp.c index db13ed2..deeb029 100644 --- a/kernel/libc/string/memcmp.c +++ b/kernel/libc/string/memcmp.c @@ -1,12 +1,11 @@ #include "../include/string.h" -int memcmp(const void *s1, const void *s2, u32 n) -{ - int return_value = 0; +int memcmp(const void *s1, const void *s2, u32 n) { + int return_value = 0; - for(u32 i = 0;i < n;i++) - if(((unsigned char *)(s1))[i] != ((unsigned char *)(s2))[i]) - return_value++; + for (u32 i = 0; i < n; i++) + if (((unsigned char *)(s1))[i] != ((unsigned char *)(s2))[i]) + return_value++; - return return_value; + return return_value; } -- cgit v1.2.3