summaryrefslogtreecommitdiffstats
path: root/XUtils.c
diff options
context:
space:
mode:
authorBenny Baumann <BenBE@geshi.org>2022-10-22 19:19:39 +0200
committerBenBE <BenBE@geshi.org>2022-10-24 23:13:22 +0200
commit40104588f38250afde9f71b6204d789039bbfe3e (patch)
tree745e532580371db2ca85b4ae57b10f1ad3396531 /XUtils.c
parent4ad530d1c00f649dcd02b818a3ccc7ded0aaf12d (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.c8
1 files changed, 4 insertions, 4 deletions
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) {

© 2014-2024 Faster IT GmbH | imprint | privacy policy