From 40104588f38250afde9f71b6204d789039bbfe3e Mon Sep 17 00:00:00 2001 From: Benny Baumann Date: Sat, 22 Oct 2022 19:19:39 +0200 Subject: Reformat code base This includes: - Wrap function implementations - Pointer alignment for function signatures - Pointer alignment for variable declarations - Whitespace after keywords - Whitespace after comma - Whitespace around initializers - Whitespace around operators - Code indentation - Line break for single line statements - Misleading alignment --- XUtils.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'XUtils.c') diff --git a/XUtils.c b/XUtils.c index ca52e517..6a021f35 100644 --- a/XUtils.c +++ b/XUtils.c @@ -104,9 +104,9 @@ inline bool String_contains_i(const char* s1, const char* s2, bool multi) { String_freeArray(needles); return true; } - } - String_freeArray(needles); - return false; + } + String_freeArray(needles); + return false; } else { return strcasestr(s1, s2) != NULL; } @@ -314,7 +314,7 @@ ssize_t xReadfileat(openat_arg_t dirfd, const char* pathname, void* buffer, size return readfd_internal(fd, buffer, count); } -ssize_t full_write(int fd, const void *buf, size_t count) { +ssize_t full_write(int fd, const void* buf, size_t count) { ssize_t written = 0; while (count > 0) { -- cgit v1.2.3