2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 22:15:20 +00:00

apply the modified style

This commit is contained in:
Evan Hunt
2020-02-13 14:44:37 -08:00
parent 0255a97473
commit e851ed0bb5
669 changed files with 35995 additions and 42219 deletions

View File

@@ -31,13 +31,12 @@
#include "isc/types.h"
#include "isc/util.h"
static uint8_t isc_hash_key[16];
static bool hash_initialized = false;
static uint8_t isc_hash_key[16];
static bool hash_initialized = false;
static isc_once_t isc_hash_once = ISC_ONCE_INIT;
static void
isc_hash_initialize(void)
{
isc_hash_initialize(void) {
uint64_t key[2] = { 0, 1 };
#if FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
/*
@@ -77,8 +76,7 @@ static uint8_t maptolower[] = {
};
const void *
isc_hash_get_initializer(void)
{
isc_hash_get_initializer(void) {
if (ISC_UNLIKELY(!hash_initialized)) {
RUNTIME_CHECK(
isc_once_do(&isc_hash_once, isc_hash_initialize) ==
@@ -89,8 +87,7 @@ isc_hash_get_initializer(void)
}
void
isc_hash_set_initializer(const void *initializer)
{
isc_hash_set_initializer(const void *initializer) {
REQUIRE(initializer != NULL);
/*
@@ -108,8 +105,7 @@ isc_hash_set_initializer(const void *initializer)
uint64_t
isc_hash_function(const void *data, const size_t length,
const bool case_sensitive)
{
const bool case_sensitive) {
uint64_t hval;
REQUIRE(length == 0 || data != NULL);