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/socket/listen.c | 6 +++--- userland/libc/sys/socket/sendto.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'userland/libc/sys/socket') diff --git a/userland/libc/sys/socket/listen.c b/userland/libc/sys/socket/listen.c index a3bec10..67cc6ce 100644 --- a/userland/libc/sys/socket/listen.c +++ b/userland/libc/sys/socket/listen.c @@ -1,9 +1,9 @@ -#include #include +#include int listen(int socket, int backlog) { - (void)socket; - (void)backlog; + (void)socket; + (void)backlog; printf("TODO: Implement listen()\n"); return 0; } diff --git a/userland/libc/sys/socket/sendto.c b/userland/libc/sys/socket/sendto.c index 73437ab..be35ec0 100644 --- a/userland/libc/sys/socket/sendto.c +++ b/userland/libc/sys/socket/sendto.c @@ -7,7 +7,7 @@ struct two_args { }; size_t sendto(int socket, const void *message, size_t length, int flags, - const struct sockaddr *dest_addr, socklen_t dest_len) { + const struct sockaddr *dest_addr, socklen_t dest_len) { struct two_args extra = { .a = dest_addr, .b = dest_len, -- cgit v1.2.3