From: Geoff Thorpe Date: Wed, 22 Oct 2008 01:25:45 +0000 (+0000) Subject: Use of a 'top' var creates "shadow variable" warnings. X-Git-Tag: OpenSSL_0_9_8k^2~218 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=3fdc6c11aab4a6886dd9126825fc584cb0f7e608;p=oweals%2Fopenssl.git Use of a 'top' var creates "shadow variable" warnings. --- diff --git a/crypto/bn/bn.h b/crypto/bn/bn.h index e366106f12..eedde6a016 100644 --- a/crypto/bn/bn.h +++ b/crypto/bn/bn.h @@ -752,12 +752,12 @@ int RAND_pseudo_bytes(unsigned char *buf,int num); #define bn_correct_top(a) \ { \ BN_ULONG *ftl; \ - int top = (a)->top; \ - if (top > 0) \ + int __top = (a)->top; \ + if (__top > 0) \ { \ - for (ftl= &((a)->d[top-1]); top > 0; top--) \ + for (ftl= &((a)->d[__top-1]); __top > 0; __top--) \ if (*(ftl--)) break; \ - (a)->top = top; \ + (a)->top = __top; \ } \ bn_pollute(a); \ }