]> git.ipfire.org Git - thirdparty/bind9.git/commit
Add isc_log_createandusechannel() function to simplify usage
authorOndřej Surý <ondrej@isc.org>
Wed, 14 Aug 2024 12:38:07 +0000 (14:38 +0200)
committerOndřej Surý <ondrej@isc.org>
Tue, 20 Aug 2024 12:50:39 +0000 (12:50 +0000)
commit679e90a57dea7b00e65a6830f84d63ef13a2c830
tree665280dce410048c9119ab1d4fb0351698e59aab
parent091d738c7257451bf68a78f8070639aea04a70e1
Add isc_log_createandusechannel() function to simplify usage

The new
isc_log_createandusechannel() function combines following calls:

    isc_log_createchannel()
    isc_log_usechannel()

calls into a single call that cannot fail and therefore can be used in
places where we know this cannot fail thus simplifying the error
handling.
20 files changed:
bin/check/check-tool.c
bin/delv/delv.c
bin/dig/dighost.c
bin/dnssec/dnssectool.c
bin/named/log.c
bin/named/logconf.c
bin/nsupdate/nsupdate.c
bin/rndc/rndc.c
bin/tests/system/makejournal.c
bin/tests/system/rsabigexponent/bigkey.c
bin/tools/named-journalprint.c
doc/dev/dev.md
doc/misc/cfg_test.c
lib/isc/include/isc/log.h
lib/isc/log.c
lib/isc/netmgr/netmgr.c
tests/bench/qpmulti.c
tests/dns/qpmulti_test.c
tests/isccfg/duration_test.c
tests/isccfg/parser_test.c