diff options
author | Rob Crittenden <rcritten@redhat.com> | 2015-08-27 13:04:44 -0400 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2015-08-27 13:04:44 -0400 |
commit | 03532ec40252493bb846fa6ffea1af28af79116b (patch) | |
tree | 9a2d433dc8f929babd62486703c12d9c77153673 | |
parent | 5bac18e93151bfb6a0aa9d7467d7d84e24989fae (diff) | |
download | mod_nss-03532ec40252493bb846fa6ffea1af28af79116b.tar.gz mod_nss-03532ec40252493bb846fa6ffea1af28af79116b.tar.xz mod_nss-03532ec40252493bb846fa6ffea1af28af79116b.zip |
Switch set_cipher_value() to void since there is no return value
-rw-r--r-- | nss_engine_cipher.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/nss_engine_cipher.c b/nss_engine_cipher.c index 37ef338..012e269 100644 --- a/nss_engine_cipher.c +++ b/nss_engine_cipher.c @@ -142,7 +142,7 @@ int nss_parse_ciphers(server_rec *s, char *ciphers, PRBool cipher_list[ciphernum * This is needed because the + action doesn't do anything in the NSS * context. In OpenSSL it will re-order the cipher list. */ -static int set_cipher_value(PRBool cipher_list[ciphernum], int index, int action) +static void set_cipher_value(PRBool cipher_list[ciphernum], int index, int action) { int i; @@ -153,9 +153,7 @@ static int set_cipher_value(PRBool cipher_list[ciphernum], int index, int action } } - if (cipher_list[index] == -1) /* cipher is disabled */ - return; - else + if (cipher_list[index] != -1) /* cipher is disabled */ cipher_list[index] = action; } |