From: Bodo Möller Date: Fri, 16 Jun 2000 14:24:37 +0000 (+0000) Subject: There are compilers that complain if a variable has the same name as a X-Git-Tag: OpenSSL-engine-0_9_6-beta1~21^2~56 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4ee1eb7bd43dcce09ebe222967524bdcb12005d8;p=openssl There are compilers that complain if a variable has the same name as a label. (Reported by Alexei Bakharevski.) --- diff --git a/crypto/rand/randfile.c b/crypto/rand/randfile.c index 830d6168e6..f6dc880fed 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)