mirror of
https://github.com/curl/curl.git
synced 2026-08-24 15:33:37 +03:00
Compiler warning fix
This commit is contained in:
parent
8d24c0212e
commit
c30e908034
5 changed files with 37 additions and 37 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue