mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-25 11:38:29 +00:00
Update sources to Clang 18 formatting
This commit is contained in:
parent
7107c44c7c
commit
f454fa6dea
@ -152,11 +152,11 @@
|
|||||||
#endif /* HAVE_LMDB */
|
#endif /* HAVE_LMDB */
|
||||||
|
|
||||||
#ifndef SIZE_MAX
|
#ifndef SIZE_MAX
|
||||||
#define SIZE_MAX ((size_t)-1)
|
#define SIZE_MAX ((size_t) - 1)
|
||||||
#endif /* ifndef SIZE_MAX */
|
#endif /* ifndef SIZE_MAX */
|
||||||
|
|
||||||
#ifndef SIZE_AS_PERCENT
|
#ifndef SIZE_AS_PERCENT
|
||||||
#define SIZE_AS_PERCENT ((size_t)-2)
|
#define SIZE_AS_PERCENT ((size_t) - 2)
|
||||||
#endif /* ifndef SIZE_AS_PERCENT */
|
#endif /* ifndef SIZE_AS_PERCENT */
|
||||||
|
|
||||||
/* RFC7828 defines timeout as 16-bit value specified in units of 100
|
/* RFC7828 defines timeout as 16-bit value specified in units of 100
|
||||||
|
@ -157,7 +157,7 @@ typedef struct {
|
|||||||
typedef uint32_t librpz_idx_t;
|
typedef uint32_t librpz_idx_t;
|
||||||
#define LIBRPZ_IDX_NULL 0
|
#define LIBRPZ_IDX_NULL 0
|
||||||
#define LIBRPZ_IDX_MIN 1
|
#define LIBRPZ_IDX_MIN 1
|
||||||
#define LIBRPZ_IDX_BAD ((librpz_idx_t)-1)
|
#define LIBRPZ_IDX_BAD ((librpz_idx_t) - 1)
|
||||||
/**
|
/**
|
||||||
* Partial decoded results of a set of RPZ queries for a single DNS response
|
* Partial decoded results of a set of RPZ queries for a single DNS response
|
||||||
* or iteration through the mapped file.
|
* or iteration through the mapped file.
|
||||||
|
@ -88,7 +88,7 @@ typedef uint8_t dns_rpz_num_t;
|
|||||||
*/
|
*/
|
||||||
typedef uint64_t dns_rpz_zbits_t;
|
typedef uint64_t dns_rpz_zbits_t;
|
||||||
|
|
||||||
#define DNS_RPZ_ALL_ZBITS ((dns_rpz_zbits_t)-1)
|
#define DNS_RPZ_ALL_ZBITS ((dns_rpz_zbits_t) - 1)
|
||||||
|
|
||||||
#define DNS_RPZ_INVALID_NUM DNS_RPZ_MAX_ZONES
|
#define DNS_RPZ_INVALID_NUM DNS_RPZ_MAX_ZONES
|
||||||
|
|
||||||
|
@ -53,30 +53,8 @@ log_end(dns_rrl_t *rrl, dns_rrl_entry_t *e, bool early, char *log_buf,
|
|||||||
static int
|
static int
|
||||||
hash_divisor(unsigned int initial) {
|
hash_divisor(unsigned int initial) {
|
||||||
static uint16_t primes[] = {
|
static uint16_t primes[] = {
|
||||||
3,
|
3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41,
|
||||||
5,
|
43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97,
|
||||||
7,
|
|
||||||
11,
|
|
||||||
13,
|
|
||||||
17,
|
|
||||||
19,
|
|
||||||
23,
|
|
||||||
29,
|
|
||||||
31,
|
|
||||||
37,
|
|
||||||
41,
|
|
||||||
43,
|
|
||||||
47,
|
|
||||||
53,
|
|
||||||
59,
|
|
||||||
61,
|
|
||||||
67,
|
|
||||||
71,
|
|
||||||
73,
|
|
||||||
79,
|
|
||||||
83,
|
|
||||||
89,
|
|
||||||
97,
|
|
||||||
#if 0
|
#if 0
|
||||||
101, 103, 107, 109, 113, 127, 131, 137, 139, 149, 151, 157,
|
101, 103, 107, 109, 113, 127, 131, 137, 139, 149, 151, 157,
|
||||||
163, 167, 173, 179, 181, 191, 193, 197, 199, 211, 223, 227,
|
163, 167, 173, 179, 181, 191, 193, 197, 199, 211, 223, 227,
|
||||||
|
@ -1012,7 +1012,7 @@ static const char *dbargv_default[] = { ZONEDB_DEFAULT };
|
|||||||
do { \
|
do { \
|
||||||
isc_interval_t _i; \
|
isc_interval_t _i; \
|
||||||
uint32_t _j; \
|
uint32_t _j; \
|
||||||
_j = (b)-isc_random_uniform((b) / 4); \
|
_j = (b) - isc_random_uniform((b) / 4); \
|
||||||
isc_interval_set(&_i, _j, 0); \
|
isc_interval_set(&_i, _j, 0); \
|
||||||
if (isc_time_add((a), &_i, (c)) != ISC_R_SUCCESS) { \
|
if (isc_time_add((a), &_i, (c)) != ISC_R_SUCCESS) { \
|
||||||
dns_zone_log(zone, ISC_LOG_WARNING, \
|
dns_zone_log(zone, ISC_LOG_WARNING, \
|
||||||
|
@ -395,9 +395,9 @@ mock_assert(const int result, const char *const expression,
|
|||||||
* Alignment
|
* Alignment
|
||||||
*/
|
*/
|
||||||
#ifdef __GNUC__
|
#ifdef __GNUC__
|
||||||
#define ISC_ALIGN(x, a) (((x) + (a)-1) & ~((typeof(x))(a)-1))
|
#define ISC_ALIGN(x, a) (((x) + (a) - 1) & ~((typeof(x))(a) - 1))
|
||||||
#else /* ifdef __GNUC__ */
|
#else /* ifdef __GNUC__ */
|
||||||
#define ISC_ALIGN(x, a) (((x) + (a)-1) & ~((uintmax_t)(a)-1))
|
#define ISC_ALIGN(x, a) (((x) + (a) - 1) & ~((uintmax_t)(a) - 1))
|
||||||
#endif /* ifdef __GNUC__ */
|
#endif /* ifdef __GNUC__ */
|
||||||
|
|
||||||
/*%
|
/*%
|
||||||
|
@ -52,7 +52,7 @@
|
|||||||
#define ALIGNED(n) __attribute__((aligned(n)))
|
#define ALIGNED(n) __attribute__((aligned(n)))
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define IS_PRINTABLE_ASCII(c) ((unsigned char)(c)-040u < 0137u)
|
#define IS_PRINTABLE_ASCII(c) ((unsigned char)(c) - 040u < 0137u)
|
||||||
|
|
||||||
#define CHECK_EOF() \
|
#define CHECK_EOF() \
|
||||||
if (buf == buf_end) { \
|
if (buf == buf_end) { \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user