Merge branch '46-add-curly-braces' into 'master'
Add curly braces using uncrustify and then reformat with clang-format back Closes #46 See merge request isc-projects/bind9!3057 (cherry picked from commit67b68e06ad)36c6105eUse coccinelle to add braces to nested single line statementd14bb713Add copy of run-clang-tidy that can fixup the filepaths056e133cUse clang-tidy to add curly braces around one-line statements
This commit is contained in:
@@ -41,10 +41,11 @@ main(int argc, char **argv)
|
||||
isc_lfsr_init(&lfsr1, 0, 32, 0x80000057U, 0, NULL, NULL);
|
||||
for (i = 0; i < 32; i++) {
|
||||
isc_lfsr_generate(&lfsr1, &temp, 4);
|
||||
if (state[i] != temp)
|
||||
if (state[i] != temp) {
|
||||
printf("lfsr1: state[%2d] = %08x, "
|
||||
"but new state is %08x\n",
|
||||
i, state[i], temp);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -60,10 +61,11 @@ main(int argc, char **argv)
|
||||
for (i = 0; i < 32; i++) {
|
||||
isc_lfsr_generate(&lfsr1, &temp, 4);
|
||||
isc_lfsr_skip(&lfsr1, 32);
|
||||
if (state[i] != temp)
|
||||
if (state[i] != temp) {
|
||||
printf("lfsr1: state[%2d] = %08x, "
|
||||
"but new state is %08x\n",
|
||||
i, state[i], temp);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -79,10 +81,11 @@ main(int argc, char **argv)
|
||||
isc_lfsr_init(&lfsr2, 0, 16, 0x00008016U, 0, NULL, NULL);
|
||||
for (i = 0; i < 32; i++) {
|
||||
isc_lfsr_generate(&lfsr2, &temp, 4);
|
||||
if (state[i] != temp)
|
||||
if (state[i] != temp) {
|
||||
printf("lfsr2: state[%2d] = %08x, "
|
||||
"but new state is %08x\n",
|
||||
i, state[i], temp);
|
||||
}
|
||||
}
|
||||
|
||||
return (0);
|
||||
|
||||
Reference in New Issue
Block a user