diff options
author | Benny Baumann <BenBE@geshi.org> | 2022-10-22 19:19:39 +0200 |
---|---|---|
committer | BenBE <BenBE@geshi.org> | 2022-10-24 23:13:22 +0200 |
commit | 40104588f38250afde9f71b6204d789039bbfe3e (patch) | |
tree | 745e532580371db2ca85b4ae57b10f1ad3396531 /XUtils.c | |
parent | 4ad530d1c00f649dcd02b818a3ccc7ded0aaf12d (diff) |
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
Diffstat (limited to 'XUtils.c')
-rw-r--r-- | XUtils.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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) { |