There are compilers that complain if a variable has the same name as a
label. (Reported by Alexei Bakharevski.)
This commit is contained in:
parent
e9a68cfbc3
commit
4ee1eb7bd4
@ -130,7 +130,7 @@ err:
|
|||||||
int RAND_write_file(const char *file)
|
int RAND_write_file(const char *file)
|
||||||
{
|
{
|
||||||
unsigned char buf[BUFSIZE];
|
unsigned char buf[BUFSIZE];
|
||||||
int i,ret=0,err=0;
|
int i,ret=0,rand_err=0;
|
||||||
FILE *out = NULL;
|
FILE *out = NULL;
|
||||||
int n;
|
int n;
|
||||||
|
|
||||||
@ -156,7 +156,7 @@ int RAND_write_file(const char *file)
|
|||||||
i=(n > BUFSIZE)?BUFSIZE:n;
|
i=(n > BUFSIZE)?BUFSIZE:n;
|
||||||
n-=BUFSIZE;
|
n-=BUFSIZE;
|
||||||
if (RAND_bytes(buf,i) <= 0)
|
if (RAND_bytes(buf,i) <= 0)
|
||||||
err=1;
|
rand_err=1;
|
||||||
i=fwrite(buf,1,i,out);
|
i=fwrite(buf,1,i,out);
|
||||||
if (i <= 0)
|
if (i <= 0)
|
||||||
{
|
{
|
||||||
@ -189,7 +189,7 @@ int RAND_write_file(const char *file)
|
|||||||
fclose(out);
|
fclose(out);
|
||||||
memset(buf,0,BUFSIZE);
|
memset(buf,0,BUFSIZE);
|
||||||
err:
|
err:
|
||||||
return(err ? -1 : ret);
|
return (rand_err ? -1 : ret);
|
||||||
}
|
}
|
||||||
|
|
||||||
const char *RAND_file_name(char *buf, int size)
|
const char *RAND_file_name(char *buf, int size)
|
||||||
|
Loading…
Reference in New Issue
Block a user