Compiler warning fix

This commit is contained in:
Yang Tse
2006-09-10 23:37:42 +00:00
parent 8d24c0212e
commit c30e908034
5 changed files with 37 additions and 37 deletions

View File

@@ -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