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/strlen.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'kernel/libc/string/strlen.c') diff --git a/kernel/libc/string/strlen.c b/kernel/libc/string/strlen.c index 4346383..a4a096a 100644 --- a/kernel/libc/string/strlen.c +++ b/kernel/libc/string/strlen.c @@ -1,8 +1,8 @@ #include "../include/string.h" -unsigned long strlen(const char *s) -{ - const char * tmp = s; - for(;*tmp++;); - return (tmp - s)-1; +unsigned long strlen(const char *s) { + const char *tmp = s; + for (; *tmp++;) + ; + return (tmp - s) - 1; } -- cgit v1.2.3