]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Whitespace fixes
authorOndřej Surý <ondrej@sury.org>
Thu, 23 Aug 2018 08:19:43 +0000 (10:19 +0200)
committerOndřej Surý <ondrej@sury.org>
Thu, 23 Aug 2018 09:39:01 +0000 (11:39 +0200)
bin/tools/mdig.c
lib/isc/hash.c

index f89603e44e59558ee974114e3c4fdac8d5ab2739..899963c784c693a0b75a60424a83506dc2e37ebc 100644 (file)
@@ -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:
index 210c17d310700f785e70afab6cedc6cf6354cb55..456e94588a3af3b36079cc040eb9c21026a32311 100644 (file)
@@ -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);