diff options
author | Geoff Thorpe <geoff@openssl.org> | 2003-11-04 00:51:32 +0000 |
---|---|---|
committer | Geoff Thorpe <geoff@openssl.org> | 2003-11-04 00:51:32 +0000 |
commit | d8ec0dcf457f4dec39f137657b702fcbeaf5cc04 (patch) | |
tree | b9fc5fe2f2eb1fb17672838a201fda808751a039 /crypto | |
parent | c465e7941ec785f2ce53638b351a21d6a49fe1a0 (diff) |
Avoid some shadowed variable names.
Submitted by: Nils Larsch
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/bio/b_dump.c | 10 | ||||
-rw-r--r-- | crypto/bio/b_print.c | 6 |
2 files changed, 8 insertions, 8 deletions
diff --git a/crypto/bio/b_dump.c b/crypto/bio/b_dump.c index 8397cfab6a..0f61768360 100644 --- a/crypto/bio/b_dump.c +++ b/crypto/bio/b_dump.c @@ -77,15 +77,15 @@ int BIO_dump_indent(BIO *bio, const char *s, int len, int indent) { int ret=0; char buf[288+1],tmp[20],str[128+1]; - int i,j,rows,trunc; + int i,j,rows,trc; unsigned char ch; int dump_width; - trunc=0; + trc=0; #ifdef TRUNCATE for(; (len > 0) && ((s[len-1] == ' ') || (s[len-1] == '\0')); len--) - trunc++; + trc++; #endif if (indent < 0) @@ -142,9 +142,9 @@ int BIO_dump_indent(BIO *bio, const char *s, int len, int indent) ret+=BIO_write(bio,(char *)buf,strlen(buf)); } #ifdef TRUNCATE - if (trunc > 0) + if (trc > 0) { - sprintf(buf,"%s%04x - <SPACES/NULS>\n",str,len+trunc); + sprintf(buf,"%s%04x - <SPACES/NULS>\n",str,len+trc); ret+=BIO_write(bio,(char *)buf,strlen(buf)); } #endif diff --git a/crypto/bio/b_print.c b/crypto/bio/b_print.c index f80335e269..de74ec6df9 100644 --- a/crypto/bio/b_print.c +++ b/crypto/bio/b_print.c @@ -576,12 +576,12 @@ abs_val(LDOUBLE value) } static LDOUBLE -pow10(int exp) +pow10(int in_exp) { LDOUBLE result = 1; - while (exp) { + while (in_exp) { result *= 10; - exp--; + in_exp--; } return result; } |