From b033314bf1901d436dc71d41d5e1f37dda47e511 Mon Sep 17 00:00:00 2001 From: Anton Kling Date: Thu, 12 Dec 2024 16:03:08 +0100 Subject: formatting: Use clang-format on all projects This commit also add braces to all `if` statements. --- userland/libc/sys/mman/mmap.c | 4 ++-- userland/libc/sys/mman/munmap.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'userland/libc/sys/mman') diff --git a/userland/libc/sys/mman/mmap.c b/userland/libc/sys/mman/mmap.c index b9ad3a2..53c6f77 100644 --- a/userland/libc/sys/mman/mmap.c +++ b/userland/libc/sys/mman/mmap.c @@ -1,6 +1,6 @@ -#include #include #include +#include extern int errno; @@ -14,6 +14,6 @@ void *mmap(void *addr, size_t length, int prot, int flags, int fd, .fd = fd, .offset = offset, }; -// return (void*)syscall(SYS_MMAP, &args, 0, 0, 0, 0); + // return (void*)syscall(SYS_MMAP, &args, 0, 0, 0, 0); RC_ERRNO(syscall(SYS_MMAP, &args, 0, 0, 0, 0)); } diff --git a/userland/libc/sys/mman/munmap.c b/userland/libc/sys/mman/munmap.c index 940ea46..5750cb4 100644 --- a/userland/libc/sys/mman/munmap.c +++ b/userland/libc/sys/mman/munmap.c @@ -2,5 +2,5 @@ #include int munmap(void *addr, size_t length) { - RC_ERRNO(syscall(SYS_MUNMAP, addr, length,0, 0, 0)); + RC_ERRNO(syscall(SYS_MUNMAP, addr, length, 0, 0, 0)); } -- cgit v1.2.3