mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 14:35:26 +00:00
Use ControlStatementsExceptControlMacros for SpaceBeforeParens
> Put a space before opening parentheses only after control statement > keywords (for/if/while...) except this option doesn’t apply to ForEach > and If macros. This is useful in projects where ForEach/If macros are > treated as function calls instead of control statements.
This commit is contained in:
@@ -737,7 +737,7 @@ tcp_recv_shutdown(dns_dispatch_t *disp, dns_displist_t *resps,
|
||||
/*
|
||||
* If there are any active responses, shut them all down.
|
||||
*/
|
||||
ISC_LIST_FOREACH (disp->active, resp, alink) {
|
||||
ISC_LIST_FOREACH(disp->active, resp, alink) {
|
||||
tcp_recv_add(resps, resp, result);
|
||||
}
|
||||
disp->state = DNS_DISPATCHSTATE_CANCELED;
|
||||
@@ -745,7 +745,7 @@ tcp_recv_shutdown(dns_dispatch_t *disp, dns_displist_t *resps,
|
||||
|
||||
static void
|
||||
tcp_recv_processall(dns_displist_t *resps, isc_region_t *region) {
|
||||
ISC_LIST_FOREACH (*resps, resp, rlink) {
|
||||
ISC_LIST_FOREACH(*resps, resp, rlink) {
|
||||
ISC_LIST_UNLINK(*resps, resp, rlink);
|
||||
|
||||
dispentry_log(resp, ISC_LOG_DEBUG(90), "read callback: %s",
|
||||
@@ -1837,7 +1837,7 @@ tcp_connected(isc_nmhandle_t *handle, isc_result_t eresult, void *arg) {
|
||||
* If there are pending responses, call the connect
|
||||
* callbacks for all of them.
|
||||
*/
|
||||
ISC_LIST_FOREACH (disp->pending, resp, plink) {
|
||||
ISC_LIST_FOREACH(disp->pending, resp, plink) {
|
||||
ISC_LIST_UNLINK(disp->pending, resp, plink);
|
||||
ISC_LIST_APPEND(resps, resp, rlink);
|
||||
resp->result = eresult;
|
||||
@@ -1871,7 +1871,7 @@ tcp_connected(isc_nmhandle_t *handle, isc_result_t eresult, void *arg) {
|
||||
disp->state = DNS_DISPATCHSTATE_NONE;
|
||||
}
|
||||
|
||||
ISC_LIST_FOREACH (resps, resp, rlink) {
|
||||
ISC_LIST_FOREACH(resps, resp, rlink) {
|
||||
ISC_LIST_UNLINK(resps, resp, rlink);
|
||||
|
||||
resp_connected(resp);
|
||||
|
Reference in New Issue
Block a user