From: Ondřej Surý Date: Thu, 23 Aug 2018 08:19:43 +0000 (+0200) Subject: Whitespace fixes X-Git-Tag: v9.13.3~47^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=31b536094313af33dcd84e96eb16ac83b207ed82;p=thirdparty%2Fbind9.git Whitespace fixes --- diff --git a/bin/tools/mdig.c b/bin/tools/mdig.c index f89603e44e5..899963c784c 100644 --- a/bin/tools/mdig.c +++ b/bin/tools/mdig.c @@ -845,18 +845,18 @@ parse_xint(uint32_t *uip, const char *value, uint32_t max, static void newopts(struct query *query) { - size_t len = sizeof(query->ednsopts[0]) * EDNSOPTS; - size_t i; - - query->ednsopts = isc_mem_allocate(mctx, len); - if (query->ednsopts == NULL) - fatal("out of memory"); - - for (i = 0; i < EDNSOPTS; i++) { - query->ednsopts[i].code = 0; - query->ednsopts[i].length = 0; - query->ednsopts[i].value = NULL; - } + size_t len = sizeof(query->ednsopts[0]) * EDNSOPTS; + size_t i; + + query->ednsopts = isc_mem_allocate(mctx, len); + if (query->ednsopts == NULL) + fatal("out of memory"); + + for (i = 0; i < EDNSOPTS; i++) { + query->ednsopts[i].code = 0; + query->ednsopts[i].length = 0; + query->ednsopts[i].value = NULL; + } } static void @@ -1296,7 +1296,7 @@ plus_option(char *option, struct query *query, bool global) "specified"); } value = strtok_r(NULL, "\0", - &last); + &last); save_opt(query, code, value); break; default: diff --git a/lib/isc/hash.c b/lib/isc/hash.c index 210c17d3107..456e94588a3 100644 --- a/lib/isc/hash.c +++ b/lib/isc/hash.c @@ -84,7 +84,7 @@ const void * isc_hash_get_initializer(void) { if (ISC_UNLIKELY(!fnv_initialized)) RUNTIME_CHECK(isc_once_do(&fnv_once, fnv_initialize) == - ISC_R_SUCCESS); + ISC_R_SUCCESS); return (&fnv_offset_basis); } @@ -99,7 +99,7 @@ isc_hash_set_initializer(const void *initializer) { */ if (ISC_UNLIKELY(!fnv_initialized)) RUNTIME_CHECK(isc_once_do(&fnv_once, fnv_initialize) == - ISC_R_SUCCESS); + ISC_R_SUCCESS); fnv_offset_basis = *((const unsigned int *)initializer); } @@ -108,7 +108,7 @@ isc_hash_set_initializer(const void *initializer) { uint32_t isc_hash_function(const void *data, size_t length, bool case_sensitive, - const uint32_t *previous_hashp) + const uint32_t *previous_hashp) { uint32_t hval; const unsigned char *bp; @@ -118,11 +118,11 @@ isc_hash_function(const void *data, size_t length, bool case_sensitive, if (ISC_UNLIKELY(!fnv_initialized)) { RUNTIME_CHECK(isc_once_do(&fnv_once, fnv_initialize) == - ISC_R_SUCCESS); + ISC_R_SUCCESS); } hval = ISC_UNLIKELY(previous_hashp != NULL) ? *previous_hashp - : fnv_offset_basis; + : fnv_offset_basis; if (length == 0) { return (hval); @@ -157,7 +157,7 @@ isc_hash_function(const void *data, size_t length, bool case_sensitive, uint32_t isc_hash_function_reverse(const void *data, size_t length, bool case_sensitive, - const uint32_t *previous_hashp) + const uint32_t *previous_hashp) { uint32_t hval; const unsigned char *bp; @@ -167,11 +167,11 @@ isc_hash_function_reverse(const void *data, size_t length, bool case_sensitive, if (ISC_UNLIKELY(!fnv_initialized)) { RUNTIME_CHECK(isc_once_do(&fnv_once, fnv_initialize) == - ISC_R_SUCCESS); + ISC_R_SUCCESS); } hval = ISC_UNLIKELY(previous_hashp != NULL) ? *previous_hashp - : fnv_offset_basis; + : fnv_offset_basis; if (length == 0) { return (hval);