mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 06:25:31 +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:
@@ -59,7 +59,7 @@ static atomic_bool is_running;
|
||||
* We need to remember which thread is the main thread...
|
||||
*/
|
||||
static isc_thread_t main_thread;
|
||||
#endif
|
||||
#endif /* ifdef WIN32 */
|
||||
|
||||
/*
|
||||
* The application context of this module.
|
||||
@@ -109,7 +109,7 @@ handle_signal(int sig, void (*handler)(int))
|
||||
"handle_signal() %d setup: %s", sig, strbuf);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
#endif /* ifndef WIN32 */
|
||||
|
||||
isc_result_t
|
||||
isc_app_ctxstart(isc_appctx_t *ctx)
|
||||
@@ -240,7 +240,7 @@ isc_app_ctxrun(isc_appctx_t *ctx)
|
||||
|
||||
#ifdef WIN32
|
||||
REQUIRE(main_thread == GetCurrentThread());
|
||||
#endif
|
||||
#endif /* ifdef WIN32 */
|
||||
|
||||
if (atomic_compare_exchange_weak_acq_rel(&ctx->running, &exp_false,
|
||||
true) == true) {
|
||||
|
Reference in New Issue
Block a user