]> git.ipfire.org Git - thirdparty/bind9.git/commit
Include <inttypes.h> whenever including <cmocka.h>
authorMichał Kępień <michal@isc.org>
Thu, 18 May 2023 13:12:23 +0000 (15:12 +0200)
committerMichał Kępień <michal@isc.org>
Thu, 18 May 2023 13:12:23 +0000 (15:12 +0200)
commitc2dcd055fe03f3ec5c76bc1c778b97aa4941e17b
tree9e9c55982eafc85773b6fd34cb588b7d0dcf8796
parentddbbb8612d1f18ab301e63b0fb70850b4f47e17a
Include <inttypes.h> whenever including <cmocka.h>

Development versions of cmocka require the intmax_t and uintmax_t types
to be defined by the time the test code includes the <cmocka.h> header.
These types are defined in the <stdint.h> header, which is included by
the <inttypes.h> header, which in turn is already explicitly included by
some of the programs in the tests/ directory.  Ensure all programs in
that directory that include the <cmocka.h> header also include the
<inttypes.h> header to future-proof the code while keeping the change
set minimal and the resulting code consistent.  Also prevent explicitly
including the <stdint.h> header in those programs as it is included by
the <inttypes.h> header.
64 files changed:
tests/dns/acl_test.c
tests/dns/db_test.c
tests/dns/dbdiff_test.c
tests/dns/dbiterator_test.c
tests/dns/dbversion_test.c
tests/dns/dns64_test.c
tests/dns/dst_test.c
tests/dns/geoip_test.c
tests/dns/master_test.c
tests/dns/nsec3_test.c
tests/dns/nsec3param_test.c
tests/dns/qp_test.c
tests/dns/qpmulti_test.c
tests/dns/rbtdb_test.c
tests/dns/rdata_test.c
tests/dns/rdataset_test.c
tests/dns/resolver_test.c
tests/dns/rsa_test.c
tests/dns/sigs_test.c
tests/dns/tsig_test.c
tests/dns/zonemgr_test.c
tests/dns/zt_test.c
tests/irs/resconf_test.c
tests/isc/aes_test.c
tests/isc/ascii_test.c
tests/isc/async_test.c
tests/isc/buffer_test.c
tests/isc/counter_test.c
tests/isc/crc64_test.c
tests/isc/errno_test.c
tests/isc/file_test.c
tests/isc/heap_test.c
tests/isc/histo_test.c
tests/isc/hmac_test.c
tests/isc/job_test.c
tests/isc/lex_test.c
tests/isc/loop_test.c
tests/isc/md_test.c
tests/isc/mutex_test.c
tests/isc/netaddr_test.c
tests/isc/netmgr_common.c
tests/isc/quota_test.c
tests/isc/radix_test.c
tests/isc/regex_test.c
tests/isc/result_test.c
tests/isc/safe_test.c
tests/isc/siphash_test.c
tests/isc/sockaddr_test.c
tests/isc/spinlock_test.c
tests/isc/stats_test.c
tests/isc/stream_shutdown.c
tests/isc/symtab_test.c
tests/isc/tcp_test.c
tests/isc/tcpdns_test.c
tests/isc/time_test.c
tests/isc/tls_test.c
tests/isc/tlsdns_test.c
tests/isc/udp_test.c
tests/isc/work_test.c
tests/isccfg/duration_test.c
tests/isccfg/parser_test.c
tests/ns/listenlist_test.c
tests/ns/notify_test.c
tests/ns/plugin_test.c