2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 14:35:26 +00:00

Update sources to Clang 15 formatting

This commit is contained in:
Michal Nowak
2022-11-02 19:33:14 +01:00
parent 26a42ed1ac
commit afdb41a5aa
156 changed files with 1968 additions and 985 deletions

View File

@@ -577,7 +577,8 @@ getnodedata(dns_db_t *db, const dns_name_t *name, bool create,
* for wildcards at each level.
*/
if (result == ISC_R_NOTFOUND && !create &&
(options & DNS_DBFIND_NOWILD) == 0) {
(options & DNS_DBFIND_NOWILD) == 0)
{
unsigned int i, dlabels, nlabels;
nlabels = dns_name_countlabels(name);
@@ -751,7 +752,8 @@ createiterator(dns_db_t *db, unsigned int options,
}
if ((options & DNS_DB_NSEC3ONLY) != 0 ||
(options & DNS_DB_NONSEC3) != 0) {
(options & DNS_DB_NONSEC3) != 0)
{
return (ISC_R_NOTIMPLEMENTED);
}
@@ -919,11 +921,13 @@ findext(dns_db_t *db, const dns_name_t *name, dns_dbversion_t *version,
rdataset, sigrdataset);
if (result == ISC_R_SUCCESS && i == nlabels &&
type == dns_rdatatype_any) {
type == dns_rdatatype_any)
{
result = DNS_R_ZONECUT;
dns_rdataset_disassociate(rdataset);
if (sigrdataset != NULL &&
dns_rdataset_isassociated(sigrdataset)) {
dns_rdataset_isassociated(sigrdataset))
{
dns_rdataset_disassociate(sigrdataset);
}
break;
@@ -1917,7 +1921,8 @@ dns_sdlz_putnamedrr(dns_sdlzallnodes_t *allnodes, const char *name,
dns_name_dup(newname, mctx, sdlznode->name);
ISC_LIST_PREPEND(allnodes->nodelist, sdlznode, link);
if (allnodes->origin == NULL &&
dns_name_equal(newname, &sdlz->common.origin)) {
dns_name_equal(newname, &sdlz->common.origin))
{
allnodes->origin = sdlznode;
}
}