mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 14:35:26 +00:00
Use clang-tidy to add curly braces around one-line statements
The command used to reformat the files in this commit was: ./util/run-clang-tidy \ -clang-tidy-binary clang-tidy-11 -clang-apply-replacements-binary clang-apply-replacements-11 \ -checks=-*,readability-braces-around-statements \ -j 9 \ -fix \ -format \ -style=file \ -quiet clang-format -i --style=format $(git ls-files '*.c' '*.h') uncrustify -c .uncrustify.cfg --replace --no-backup $(git ls-files '*.c' '*.h') clang-format -i --style=format $(git ls-files '*.c' '*.h')
This commit is contained in:
@@ -279,10 +279,11 @@ isc_buffer_compact(isc_buffer_t *b)
|
||||
(void)memmove(b->base, src, (size_t)length);
|
||||
}
|
||||
|
||||
if (b->active > b->current)
|
||||
if (b->active > b->current) {
|
||||
b->active -= b->current;
|
||||
else
|
||||
} else {
|
||||
b->active = 0;
|
||||
}
|
||||
b->current = 0;
|
||||
b->used = length;
|
||||
}
|
||||
|
Reference in New Issue
Block a user