summaryrefslogtreecommitdiff
path: root/userland/libc/sys/socket
diff options
context:
space:
mode:
authorAnton Kling <anton@kling.gg>2024-12-12 16:03:08 +0100
committerAnton Kling <anton@kling.gg>2024-12-12 16:03:08 +0100
commitb033314bf1901d436dc71d41d5e1f37dda47e511 (patch)
tree120bd137888a7f96904a47af7d20422608ffe225 /userland/libc/sys/socket
parentdcbcdbdc5bcfb86eca05fb655e3bf009d89e39e0 (diff)
formatting: Use clang-format on all projects
This commit also add braces to all `if` statements.
Diffstat (limited to 'userland/libc/sys/socket')
-rw-r--r--userland/libc/sys/socket/listen.c6
-rw-r--r--userland/libc/sys/socket/sendto.c2
2 files changed, 4 insertions, 4 deletions
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 <sys/socket.h>
#include <stdio.h>
+#include <sys/socket.h>
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,