aboutsummaryrefslogtreecommitdiff
path: root/crypto/rand/randfile.c
diff options
context:
space:
mode:
authorBodo Möller <bodo@openssl.org>2000-06-16 14:24:37 +0000
committerBodo Möller <bodo@openssl.org>2000-06-16 14:24:37 +0000
commit4ee1eb7bd43dcce09ebe222967524bdcb12005d8 (patch)
treef1013b036f802ea7fef63e8a8c00465fecca0f90 /crypto/rand/randfile.c
parente9a68cfbc38922e167697cf385e664b6dd7493bd (diff)
downloadopenssl-4ee1eb7bd43dcce09ebe222967524bdcb12005d8.zip
openssl-4ee1eb7bd43dcce09ebe222967524bdcb12005d8.tar.gz
openssl-4ee1eb7bd43dcce09ebe222967524bdcb12005d8.tar.bz2
There are compilers that complain if a variable has the same name as a
label. (Reported by Alexei Bakharevski.)
Diffstat (limited to 'crypto/rand/randfile.c')
-rw-r--r--crypto/rand/randfile.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/crypto/rand/randfile.c b/crypto/rand/randfile.c
index 830d616..f6dc880 100644
--- a/crypto/rand/randfile.c
+++ b/crypto/rand/randfile.c
@@ -130,7 +130,7 @@ err:
int RAND_write_file(const char *file)
{
unsigned char buf[BUFSIZE];
- int i,ret=0,err=0;
+ int i,ret=0,rand_err=0;
FILE *out = NULL;
int n;
@@ -156,7 +156,7 @@ int RAND_write_file(const char *file)
i=(n > BUFSIZE)?BUFSIZE:n;
n-=BUFSIZE;
if (RAND_bytes(buf,i) <= 0)
- err=1;
+ rand_err=1;
i=fwrite(buf,1,i,out);
if (i <= 0)
{
@@ -189,7 +189,7 @@ int RAND_write_file(const char *file)
fclose(out);
memset(buf,0,BUFSIZE);
err:
- return(err ? -1 : ret);
+ return (rand_err ? -1 : ret);
}
const char *RAND_file_name(char *buf, int size)