diff options
author | Rob Percival <robpercival@google.com> | 2016-03-07 18:38:06 +0000 |
---|---|---|
committer | Rich Salz <rsalz@openssl.org> | 2016-03-09 11:34:48 -0500 |
commit | 70073f3e3aeb3b7dd15f20b557a8340a197d976e (patch) | |
tree | b4ed734542cef7b843b6c28b3bf9c065adc51a29 /crypto/ct/ct_prn.c | |
parent | 8c92c4eac091e1a588a980514e7f5fd2a517fefc (diff) |
Treat boolean functions as booleans
Use "!x" instead of "x <= 0", as these functions never return a negative
value.
Reviewed-by: Emilia Käsper <emilia@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'crypto/ct/ct_prn.c')
-rw-r--r-- | crypto/ct/ct_prn.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/ct/ct_prn.c b/crypto/ct/ct_prn.c index 3983c3cb3b..bb669d577a 100644 --- a/crypto/ct/ct_prn.c +++ b/crypto/ct/ct_prn.c @@ -69,7 +69,7 @@ static void SCT_signature_algorithms_print(const SCT *sct, BIO *out) { int nid = SCT_get_signature_nid(sct); - if (nid <= 0) + if (nid == NID_undef) BIO_printf(out, "%02X%02X", sct->hash_alg, sct->sig_alg); else BIO_printf(out, "%s", OBJ_nid2ln(nid)); |