- #if not #ifdef for DROPBEAR_FUZZ

- fix some unused variables

--HG--
branch : fuzz
This commit is contained in:
Matt Johnston
2018-02-28 21:40:08 +08:00
parent 9bbce01e1b
commit c658b275fd
14 changed files with 30 additions and 29 deletions

View File

@@ -145,7 +145,7 @@ void addrandom(const unsigned char * buf, unsigned int len)
{
hash_state hs;
#ifdef DROPBEAR_FUZZ
#if DROPBEAR_FUZZ
if (fuzz.fuzzing || fuzz.recordf) {
return;
}
@@ -163,7 +163,7 @@ void addrandom(const unsigned char * buf, unsigned int len)
static void write_urandom()
{
#ifdef DROPBEAR_FUZZ
#if DROPBEAR_FUZZ
if (fuzz.fuzzing || fuzz.recordf) {
return;
}
@@ -181,7 +181,7 @@ static void write_urandom()
#endif
}
#ifdef DROPBEAR_FUZZ
#if DROPBEAR_FUZZ
void fuzz_seed(void) {
hash_state hs;
sha1_init(&hs);
@@ -203,7 +203,7 @@ void seedrandom() {
struct timeval tv;
clock_t clockval;
#ifdef DROPBEAR_FUZZ
#if DROPBEAR_FUZZ
if (fuzz.fuzzing || fuzz.recordf) {
return;
}