mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 06:25:31 +00:00
silence compiler warnings
This commit is contained in:
@@ -89,7 +89,7 @@
|
||||
|
||||
#define DNS_ADB_INVALIDBUCKET (-1) /*%< invalid bucket address */
|
||||
|
||||
#define DNS_ADB_MINADBSIZE (1024*1024) /*%< 1 Megabyte */
|
||||
#define DNS_ADB_MINADBSIZE (1024U*1024U) /*%< 1 Megabyte */
|
||||
|
||||
typedef ISC_LIST(dns_adbname_t) dns_adbnamelist_t;
|
||||
typedef struct dns_adbnamehook dns_adbnamehook_t;
|
||||
@@ -4169,13 +4169,13 @@ dns_adb_setadbsize(dns_adb_t *adb, size_t size) {
|
||||
|
||||
INSIST(DNS_ADB_VALID(adb));
|
||||
|
||||
if (size != 0 && size < DNS_ADB_MINADBSIZE)
|
||||
if (size != 0U && size < DNS_ADB_MINADBSIZE)
|
||||
size = DNS_ADB_MINADBSIZE;
|
||||
|
||||
hiwater = size - (size >> 3); /* Approximately 7/8ths. */
|
||||
lowater = size - (size >> 2); /* Approximately 3/4ths. */
|
||||
|
||||
if (size == 0 || hiwater == 0 || lowater == 0)
|
||||
if (size == 0U || hiwater == 0U || lowater == 0U)
|
||||
isc_mem_setwater(adb->mctx, water, adb, 0, 0);
|
||||
else
|
||||
isc_mem_setwater(adb->mctx, water, adb, hiwater, lowater);
|
||||
|
Reference in New Issue
Block a user