avoid using declaration after statements
This commit is contained in:
parent
f108863dc3
commit
7c1e251e75
@ -21,14 +21,15 @@
|
|||||||
static unsigned long rng_nix(unsigned char *buf, unsigned long len,
|
static unsigned long rng_nix(unsigned char *buf, unsigned long len,
|
||||||
void (*callback)(void))
|
void (*callback)(void))
|
||||||
{
|
{
|
||||||
LTC_UNUSED_PARAM(callback);
|
|
||||||
#ifdef LTC_NO_FILE
|
#ifdef LTC_NO_FILE
|
||||||
|
LTC_UNUSED_PARAM(callback);
|
||||||
LTC_UNUSED_PARAM(buf);
|
LTC_UNUSED_PARAM(buf);
|
||||||
LTC_UNUSED_PARAM(len);
|
LTC_UNUSED_PARAM(len);
|
||||||
return 0;
|
return 0;
|
||||||
#else
|
#else
|
||||||
FILE *f;
|
FILE *f;
|
||||||
unsigned long x;
|
unsigned long x;
|
||||||
|
LTC_UNUSED_PARAM(callback);
|
||||||
#ifdef LTC_TRY_URANDOM_FIRST
|
#ifdef LTC_TRY_URANDOM_FIRST
|
||||||
f = fopen("/dev/urandom", "rb");
|
f = fopen("/dev/urandom", "rb");
|
||||||
if (f == NULL)
|
if (f == NULL)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user