diff options
author | nils <nils> | 2005-08-28 22:49:48 +0000 |
---|---|---|
committer | nils <nils> | 2005-08-28 22:49:48 +0000 |
commit | 130981e32877106a3c8d42643d3d8e1200c96987 (patch) | |
tree | 169b4830b1f941a2f44197d2d4920be58ad1fdb3 /crypto/bn/bn_div.c | |
parent | cf412f28fceff97b9cf478a0675306dd861fee6e (diff) | |
download | openssl-130981e32877106a3c8d42643d3d8e1200c96987.tar.gz |
fix warnings when building openssl with the following compiler options:
-Wmissing-prototypes -Wcomment -Wformat -Wimplicit -Wmain -Wmultichar
-Wswitch -Wshadow -Wtrigraphs -Werror -Wchar-subscripts
-Wstrict-prototypes -Wreturn-type -Wpointer-arith -W -Wunused
-Wno-unused-parameter -Wuninitialized
Diffstat (limited to 'crypto/bn/bn_div.c')
-rw-r--r-- | crypto/bn/bn_div.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/crypto/bn/bn_div.c b/crypto/bn/bn_div.c index 3b4392955..2857f4486 100644 --- a/crypto/bn/bn_div.c +++ b/crypto/bn/bn_div.c @@ -185,10 +185,8 @@ int BN_div(BIGNUM *dv, BIGNUM *rm, const BIGNUM *num, const BIGNUM *divisor, BN_ULONG d0,d1; int num_n,div_n; - if (dv) - bn_check_top(dv); - if (rm) - bn_check_top(rm); + bn_check_top(dv); + bn_check_top(rm); bn_check_top(num); bn_check_top(divisor); @@ -394,8 +392,7 @@ X) -> 0x%08X\n", BN_CTX_end(ctx); return(1); err: - if (rm) - bn_check_top(rm); + bn_check_top(rm); BN_CTX_end(ctx); return(0); } |