diff options
author | Ulf Möller <ulf@openssl.org> | 1999-04-19 21:31:43 +0000 |
---|---|---|
committer | Ulf Möller <ulf@openssl.org> | 1999-04-19 21:31:43 +0000 |
commit | 6b691a5c85ddc4e407e32781841fee5c029506cd (patch) | |
tree | 436f1127406e1cacfe83dfcbfff824d89c47d834 /crypto/bn/bn_add.c | |
parent | 3edd7ed15de229230f74c79c3d71e7c9c674cf4f (diff) |
Change functions to ANSI C.
Diffstat (limited to 'crypto/bn/bn_add.c')
-rw-r--r-- | crypto/bn/bn_add.c | 20 |
1 files changed, 4 insertions, 16 deletions
diff --git a/crypto/bn/bn_add.c b/crypto/bn/bn_add.c index caea96f3b5..cd7d48d71e 100644 --- a/crypto/bn/bn_add.c +++ b/crypto/bn/bn_add.c @@ -61,10 +61,7 @@ #include "bn_lcl.h" /* r can == a or b */ -int BN_add(r, a, b) -BIGNUM *r; -BIGNUM *a; -BIGNUM *b; +int BN_add(BIGNUM *r, BIGNUM *a, BIGNUM *b) { BIGNUM *tmp; @@ -107,10 +104,7 @@ BIGNUM *b; } /* unsigned add of b to a, r must be large enough */ -int BN_uadd(r,a,b) -BIGNUM *r; -BIGNUM *a; -BIGNUM *b; +int BN_uadd(BIGNUM *r, BIGNUM *a, BIGNUM *b) { register int i; int max,min; @@ -170,10 +164,7 @@ BIGNUM *b; } /* unsigned subtraction of b from a, a must be larger than b. */ -int BN_usub(r, a, b) -BIGNUM *r; -BIGNUM *a; -BIGNUM *b; +int BN_usub(BIGNUM *r, BIGNUM *a, BIGNUM *b) { int max,min; register BN_ULONG t1,t2,*ap,*bp,*rp; @@ -264,10 +255,7 @@ BIGNUM *b; return(1); } -int BN_sub(r, a, b) -BIGNUM *r; -BIGNUM *a; -BIGNUM *b; +int BN_sub(BIGNUM *r, BIGNUM *a, BIGNUM *b) { int max; int add=0,neg=0; |