summaryrefslogtreecommitdiffstats
path: root/crypto/bio
diff options
context:
space:
mode:
authorGeoff Thorpe <geoff@openssl.org>2003-11-04 00:51:32 +0000
committerGeoff Thorpe <geoff@openssl.org>2003-11-04 00:51:32 +0000
commitd8ec0dcf457f4dec39f137657b702fcbeaf5cc04 (patch)
treeb9fc5fe2f2eb1fb17672838a201fda808751a039 /crypto/bio
parentc465e7941ec785f2ce53638b351a21d6a49fe1a0 (diff)
Avoid some shadowed variable names.
Submitted by: Nils Larsch
Diffstat (limited to 'crypto/bio')
-rw-r--r--crypto/bio/b_dump.c10
-rw-r--r--crypto/bio/b_print.c6
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;
}