summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2008-10-28 13:52:51 +0000
committerAndy Polyakov <appro@openssl.org>2008-10-28 13:52:51 +0000
commitf1455b3063856c248898a5083e9b6dc256a3bf44 (patch)
treeadc39d8e6c86487abe92aff7cda4662c349eadd7 /crypto
parentb764f82c645639ce794f28ef92e749066dd2caa6 (diff)
Minor clean-up in bn_lib.c: constification and optimization.
Diffstat (limited to 'crypto')
-rw-r--r--crypto/bn/bn_lib.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/crypto/bn/bn_lib.c b/crypto/bn/bn_lib.c
index 63cdc34c59..0c6e7e5964 100644
--- a/crypto/bn/bn_lib.c
+++ b/crypto/bn/bn_lib.c
@@ -133,8 +133,8 @@ int BN_get_params(int which)
const BIGNUM *BN_value_one(void)
{
- static BN_ULONG data_one=1L;
- static BIGNUM const_one={&data_one,1,1,0,BN_FLG_STATIC_DATA};
+ static const BN_ULONG data_one=1L;
+ static const BIGNUM const_one={(BN_ULONG *)&data_one,1,1,0,BN_FLG_STATIC_DATA};
return(&const_one);
}
@@ -160,7 +160,7 @@ char *BN_options(void)
int BN_num_bits_word(BN_ULONG l)
{
- static const char bits[256]={
+ static const unsigned char bits[256]={
0,1,2,2,3,3,3,3,4,4,4,4,4,4,4,4,
5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,
6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,