mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-05 09:05:40 +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:
12
fuzz/main.c
12
fuzz/main.c
@@ -108,7 +108,7 @@ main(int argc, char **argv)
|
||||
|
||||
test_all_from(corpusdir);
|
||||
|
||||
return 0;
|
||||
return (0);
|
||||
}
|
||||
|
||||
#elif __AFL_COMPILER
|
||||
@@ -123,19 +123,19 @@ main(int argc, char **argv)
|
||||
UNUSED(argv);
|
||||
|
||||
#ifdef __AFL_LOOP
|
||||
while (__AFL_LOOP(10000)) { // only works with afl-clang-fast
|
||||
#else
|
||||
while (__AFL_LOOP(10000)) { /* only works with afl-clang-fast */
|
||||
#else /* ifdef __AFL_LOOP */
|
||||
{
|
||||
#endif
|
||||
#endif /* ifdef __AFL_LOOP */
|
||||
ret = fread(buf, 1, sizeof(buf), stdin);
|
||||
if (ret < 0) {
|
||||
return 0;
|
||||
return (0);
|
||||
}
|
||||
|
||||
LLVMFuzzerTestOneInput(buf, ret);
|
||||
}
|
||||
|
||||
return 0;
|
||||
return (0);
|
||||
}
|
||||
|
||||
#endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
|
||||
|
Reference in New Issue
Block a user