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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user