]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Add parentheses around return values
authorMatthijs Mekking <matthijs@isc.org>
Thu, 6 Feb 2020 08:29:01 +0000 (09:29 +0100)
committerMatthijs Mekking <matthijs@isc.org>
Thu, 6 Feb 2020 09:17:22 +0000 (10:17 +0100)
lib/dns/dst_api.c

index 31594a49a7e81b459ac72569a9dabe15b8dee2fb..c778d59f27fa5a3d5cfe64850e0bd9ea0ec50ee1 100644 (file)
@@ -2336,7 +2336,7 @@ dst_key_is_unused(dst_key_t* key)
                 * This key is used.
                 */
                if (!state_type_set) {
-                       return false;
+                       return (false);
                }
                /*
                 * If the state is not HIDDEN, the key is in use.
@@ -2346,11 +2346,11 @@ dst_key_is_unused(dst_key_t* key)
                        st = DST_KEY_STATE_NA;
                }
                if (st != DST_KEY_STATE_HIDDEN) {
-                       return false;
+                       return (false);
                }
        }
        /* This key is unused. */
-       return true;
+       return (true);
 }
 
 
@@ -2405,7 +2405,7 @@ dst_key_is_published(dst_key_t *key, isc_stdtime_t now,
                time_ok = true;
        }
 
-       return state_ok && time_ok;
+       return (state_ok && time_ok);
 }
 
 bool
@@ -2465,7 +2465,7 @@ dst_key_is_active(dst_key_t *key, isc_stdtime_t now)
                        inactive = false;
                }
        }
-       return ds_ok && zrrsig_ok && time_ok && !inactive;
+       return (ds_ok && zrrsig_ok && time_ok && !inactive);
 }
 
 bool
@@ -2521,7 +2521,7 @@ dst_key_is_signing(dst_key_t *key, int role, isc_stdtime_t now, isc_stdtime_t *a
                        inactive = false;
                }
        }
-       return krrsig_ok && zrrsig_ok && time_ok && !inactive;
+       return (krrsig_ok && zrrsig_ok && time_ok && !inactive);
 }
 
 bool
@@ -2539,7 +2539,7 @@ dst_key_is_revoked(dst_key_t *key, isc_stdtime_t now, isc_stdtime_t *revoke)
                time_ok = (when <= now);
        }
 
-       return time_ok;
+       return (time_ok);
 }
 
 bool
@@ -2554,7 +2554,7 @@ dst_key_is_removed(dst_key_t *key, isc_stdtime_t now, isc_stdtime_t *remove)
 
        if (dst_key_is_unused(key)) {
                /* This key was never used. */
-               return false;
+               return (false);
        }
 
        result = dst_key_gettime(key, DST_TIME_DELETE, &when);
@@ -2578,7 +2578,7 @@ dst_key_is_removed(dst_key_t *key, isc_stdtime_t now, isc_stdtime_t *remove)
                time_ok = true;
        }
 
-       return state_ok && time_ok;
+       return (state_ok && time_ok);
 }
 
 dst_key_state_t
@@ -2589,9 +2589,9 @@ dst_key_goal(dst_key_t *key)
 
        result = dst_key_getstate(key, DST_KEY_GOAL, &state);
        if (result == ISC_R_SUCCESS) {
-               return state;
+               return (state);
        }
-       return DST_KEY_STATE_HIDDEN;
+       return (DST_KEY_STATE_HIDDEN);
 }
 
 void