Compiler warning fix
This commit is contained in:
@@ -158,14 +158,14 @@ static int passwd_callback(char *buf, int num, int verify
|
||||
#define seed_enough(x) rand_enough()
|
||||
static bool rand_enough(void)
|
||||
{
|
||||
return RAND_status()?TRUE:FALSE;
|
||||
return (bool)(0 != RAND_status());
|
||||
}
|
||||
#else
|
||||
#define seed_enough(x) rand_enough(x)
|
||||
static bool rand_enough(int nread)
|
||||
{
|
||||
/* this is a very silly decision to make */
|
||||
return (nread > 500)?TRUE:FALSE;
|
||||
return (bool)(nread > 500);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user