summaryrefslogtreecommitdiffstats
path: root/crypto/bn/bn_add.c
diff options
context:
space:
mode:
authorBen Laurie <ben@links.org>2014-06-29 21:05:23 +0100
committerBen Laurie <ben@links.org>2014-06-29 21:05:23 +0100
commit8892ce77143fb01f27354dc63489e43eb7953b03 (patch)
treec307996b0f304fe2ec36aeaae888936f27c9c84c /crypto/bn/bn_add.c
parent340daf6a06aca2bf9a694eee091df42eddfae5cf (diff)
Constification - mostly originally from Chromium.
Diffstat (limited to 'crypto/bn/bn_add.c')
-rw-r--r--crypto/bn/bn_add.c6
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;