diff options
author | Ben Laurie <ben@links.org> | 2014-06-29 21:05:23 +0100 |
---|---|---|
committer | Ben Laurie <ben@links.org> | 2014-06-29 21:05:23 +0100 |
commit | 8892ce77143fb01f27354dc63489e43eb7953b03 (patch) | |
tree | c307996b0f304fe2ec36aeaae888936f27c9c84c /crypto/bn/bn_add.c | |
parent | 340daf6a06aca2bf9a694eee091df42eddfae5cf (diff) |
Constification - mostly originally from Chromium.
Diffstat (limited to 'crypto/bn/bn_add.c')
-rw-r--r-- | crypto/bn/bn_add.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/crypto/bn/bn_add.c b/crypto/bn/bn_add.c index f8e6729a47..257c2eafe5 100644 --- a/crypto/bn/bn_add.c +++ b/crypto/bn/bn_add.c @@ -107,7 +107,8 @@ int BN_add(BIGNUM *r, const BIGNUM *a, const BIGNUM *b) int BN_uadd(BIGNUM *r, const BIGNUM *a, const BIGNUM *b) { int max,min,dif; - BN_ULONG *ap,*bp,*rp,carry,t1,t2; + const BN_ULONG *ap,*bp; + BN_ULONG *rp,carry,t1,t2; const BIGNUM *tmp; bn_check_top(a); @@ -168,7 +169,8 @@ int BN_uadd(BIGNUM *r, const BIGNUM *a, const BIGNUM *b) int BN_usub(BIGNUM *r, const BIGNUM *a, const BIGNUM *b) { int max,min,dif; - register BN_ULONG t1,t2,*ap,*bp,*rp; + register BN_ULONG t1,t2,*rp; + register const BN_ULONG *ap,*bp; int i,carry; #if defined(IRIX_CC_BUG) && !defined(LINT) int dummy; |