2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-29 13:38:26 +00:00

Add parentheses around return values

This commit is contained in:
Matthijs Mekking 2020-02-06 09:29:01 +01:00
parent b378d0371f
commit a9a9aa7fd8

View File

@ -2336,7 +2336,7 @@ dst_key_is_unused(dst_key_t* key)
* This key is used. * This key is used.
*/ */
if (!state_type_set) { if (!state_type_set) {
return false; return (false);
} }
/* /*
* If the state is not HIDDEN, the key is in use. * 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; st = DST_KEY_STATE_NA;
} }
if (st != DST_KEY_STATE_HIDDEN) { if (st != DST_KEY_STATE_HIDDEN) {
return false; return (false);
} }
} }
/* This key is unused. */ /* 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; time_ok = true;
} }
return state_ok && time_ok; return (state_ok && time_ok);
} }
bool bool
@ -2465,7 +2465,7 @@ dst_key_is_active(dst_key_t *key, isc_stdtime_t now)
inactive = false; inactive = false;
} }
} }
return ds_ok && zrrsig_ok && time_ok && !inactive; return (ds_ok && zrrsig_ok && time_ok && !inactive);
} }
bool 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; inactive = false;
} }
} }
return krrsig_ok && zrrsig_ok && time_ok && !inactive; return (krrsig_ok && zrrsig_ok && time_ok && !inactive);
} }
bool 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); time_ok = (when <= now);
} }
return time_ok; return (time_ok);
} }
bool 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)) { if (dst_key_is_unused(key)) {
/* This key was never used. */ /* This key was never used. */
return false; return (false);
} }
result = dst_key_gettime(key, DST_TIME_DELETE, &when); 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; time_ok = true;
} }
return state_ok && time_ok; return (state_ok && time_ok);
} }
dst_key_state_t dst_key_state_t
@ -2589,9 +2589,9 @@ dst_key_goal(dst_key_t *key)
result = dst_key_getstate(key, DST_KEY_GOAL, &state); result = dst_key_getstate(key, DST_KEY_GOAL, &state);
if (result == ISC_R_SUCCESS) { if (result == ISC_R_SUCCESS) {
return state; return (state);
} }
return DST_KEY_STATE_HIDDEN; return (DST_KEY_STATE_HIDDEN);
} }
void void