avoid using declaration after statements
Karel Miko
8 years ago
20 | 20 | static unsigned long rng_nix(unsigned char *buf, unsigned long len, |
21 | 21 | void (*callback)(void)) |
22 | 22 | { |
23 | #ifdef LTC_NO_FILE | |
23 | 24 | LTC_UNUSED_PARAM(callback); |
24 | #ifdef LTC_NO_FILE | |
25 | 25 | LTC_UNUSED_PARAM(buf); |
26 | 26 | LTC_UNUSED_PARAM(len); |
27 | 27 | return 0; |
28 | 28 | #else |
29 | 29 | FILE *f; |
30 | 30 | unsigned long x; |
31 | LTC_UNUSED_PARAM(callback); | |
31 | 32 | #ifdef LTC_TRY_URANDOM_FIRST |
32 | 33 | f = fopen("/dev/urandom", "rb"); |
33 | 34 | if (f == NULL) |