]> git.ipfire.org Git - thirdparty/bind9.git/commit
Light refactoring of catz.c
authorAram Sargsyan <aram@isc.org>
Thu, 9 Feb 2023 10:32:33 +0000 (10:32 +0000)
committerOndřej Surý <ondrej@isc.org>
Fri, 24 Feb 2023 14:00:26 +0000 (15:00 +0100)
commit8cb79fec9dbda31b199a5f5fdf3ae3d4c40d6a99
tree9a4402d45b20f56315397f86ed583229dd9ce636
parent52c9a5b2f57e5746a1edab3db9b8760b1163324b
Light refactoring of catz.c

* Change 'dns_catz_new_zones()' function's prototype (the order of the
  arguments) to synchronize it with the similar function in rpz.c.
* Rename 'refs' to 'references' in preparation of ISC_REFCOUNT_*
  macros usage for reference tracking.
* Unify dns_catz_zone_t naming to catz, and dns_catz_zones_t naming to
  catzs, following the logic of similar changes in rpz.c.
* Use C compound literals for structure initialization.
* Synchronize the "new zone version came too soon" log message with the
  one in rpz.c.
* Use more of 'sizeof(*ptr)' style instead of the 'sizeof(type_t)' style
  expressions when allocating or freeing memory for 'ptr'.
bin/named/server.c
lib/dns/catz.c
lib/dns/include/dns/catz.h