]> git.ipfire.org Git - thirdparty/bind9.git/commit
Refactor isc_time_now() to return time, and not result
authorOndřej Surý <ondrej@isc.org>
Thu, 30 Mar 2023 22:12:33 +0000 (00:12 +0200)
committerOndřej Surý <ondrej@isc.org>
Fri, 31 Mar 2023 13:02:06 +0000 (15:02 +0200)
commita5f5f68502410eac367fa4283504ab72f9b640e2
treec3bec66e92ae4eb71132f79bbcca98e6d8bae4a0
parentda039ec2b35b020c6d673a6f74e92f50514aedcd
Refactor isc_time_now() to return time, and not result

The isc_time_now() and isc_time_now_hires() were used inconsistently
through the code - either with status check, or without status check,
or via TIME_NOW() macro with RUNTIME_CHECK() on failure.

Refactor the isc_time_now() and isc_time_now_hires() to always fail when
getting current time has failed, and return the isc_time_t value as
return value instead of passing the pointer to result in the argument.
39 files changed:
bin/dig/dighost.c
bin/dig/host.c
bin/dnssec/dnssec-signzone.c
bin/named/main.c
bin/named/server.c
bin/named/statschannel.c
bin/named/zoneconf.c
bin/tools/mdig.c
cocci/isc_time_now.spatch [new file with mode: 0644]
lib/dns/badcache.c
lib/dns/catz.c
lib/dns/dispatch.c
lib/dns/dnstap.c
lib/dns/rbtdb.c
lib/dns/resolver.c
lib/dns/rpz.c
lib/dns/validator.c
lib/dns/xfrin.c
lib/dns/zone.c
lib/isc/httpd.c
lib/isc/include/isc/time.h
lib/isc/include/isc/util.h
lib/isc/log.c
lib/isc/time.c
lib/ns/client.c
lib/ns/xfrout.c
tests/bench/ascii.c
tests/bench/compress.c
tests/bench/dns_name_fromwire.c
tests/bench/iterated_hash.c
tests/bench/load-names.c
tests/bench/siphash.c
tests/dns/rbt_test.c
tests/dns/zonemgr_test.c
tests/isc/mem_test.c
tests/isc/ratelimiter_test.c
tests/isc/time_test.c
tests/isc/timer_test.c
tests/libtest/ns.c