From a9a9aa7fd87d88b200207d5752c56a67259edfb2 Mon Sep 17 00:00:00 2001 From: Matthijs Mekking Date: Thu, 6 Feb 2020 09:29:01 +0100 Subject: [PATCH] Add parentheses around return values --- lib/dns/dst_api.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/lib/dns/dst_api.c b/lib/dns/dst_api.c index 31594a49a7..c778d59f27 100644 --- a/lib/dns/dst_api.c +++ b/lib/dns/dst_api.c @@ -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