summaryrefslogtreecommitdiffstats
path: root/usr.bin/dig/lib/isc/hash.c
diff options
context:
space:
mode:
authorflorian <florian@openbsd.org>2020-09-14 08:40:43 +0000
committerflorian <florian@openbsd.org>2020-09-14 08:40:43 +0000
commit1fb015a8af3a7e9b85db2510147a155826ef04d9 (patch)
tree91b8b6a26d148e703635ab9d6b2cc01934af9a76 /usr.bin/dig/lib/isc/hash.c
parentBunch of dead stores and otherwise unused stuff lets us get rid of (diff)
downloadwireguard-openbsd-1fb015a8af3a7e9b85db2510147a155826ef04d9.tar.xz
wireguard-openbsd-1fb015a8af3a7e9b85db2510147a155826ef04d9.zip
Mechanically replace isc_boolean_t with int.
OK deraadt
Diffstat (limited to 'usr.bin/dig/lib/isc/hash.c')
-rw-r--r--usr.bin/dig/lib/isc/hash.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/dig/lib/isc/hash.c b/usr.bin/dig/lib/isc/hash.c
index d14e1541641..3bfa7818115 100644
--- a/usr.bin/dig/lib/isc/hash.c
+++ b/usr.bin/dig/lib/isc/hash.c
@@ -14,7 +14,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: hash.c,v 1.6 2020/02/25 05:00:43 jsg Exp $ */
+/* $Id: hash.c,v 1.7 2020/09/14 08:40:44 florian Exp $ */
/*! \file
* Some portion of this code was derived from universal hash function
@@ -95,7 +95,7 @@ static unsigned char maptolower[] = {
};
static uint32_t fnv_offset_basis;
-static isc_boolean_t fnv_once = ISC_FALSE;
+static int fnv_once = 0;
static void
fnv_initialize(void) {
@@ -111,7 +111,7 @@ fnv_initialize(void) {
uint32_t
isc_hash_function_reverse(const void *data, size_t length,
- isc_boolean_t case_sensitive,
+ int case_sensitive,
const uint32_t *previous_hashp)
{
uint32_t hval;
@@ -120,7 +120,7 @@ isc_hash_function_reverse(const void *data, size_t length,
REQUIRE(length == 0 || data != NULL);
if (!fnv_once) {
- fnv_once = ISC_TRUE;
+ fnv_once = 1;
fnv_initialize();
}