summaryrefslogtreecommitdiff
path: root/kernel/libc/string/memset.c
diff options
context:
space:
mode:
authorAnton Kling <anton@kling.gg>2024-02-21 00:14:29 +0100
committerAnton Kling <anton@kling.gg>2024-02-21 00:14:29 +0100
commit8ff63b062d724826d8017504063df9b92f8e6703 (patch)
tree03bf0b5a278a4908da8912f956e5651bea9412f1 /kernel/libc/string/memset.c
parenta85eacdd2406fede4d6ff5cb130b1758978cabb3 (diff)
New clang-format options
Diffstat (limited to 'kernel/libc/string/memset.c')
-rw-r--r--kernel/libc/string/memset.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/libc/string/memset.c b/kernel/libc/string/memset.c
index 5d7de62..34fd507 100644
--- a/kernel/libc/string/memset.c
+++ b/kernel/libc/string/memset.c
@@ -2,8 +2,9 @@
void *memset(void *dst, const unsigned char c, u32 n) {
uintptr_t d = (uintptr_t)dst;
- for (u32 i = 0; i < n; i++, d++)
+ for (u32 i = 0; i < n; i++, d++) {
*(unsigned char *)d = c;
+ }
return (void *)d;
}