Fix some potential problems detected by clang.
Most of these are unnecessary comparisons and functions returning the wrong types.
This commit is contained in:
parent
614dcfffd2
commit
172c83f254
11 changed files with 24 additions and 25 deletions
|
|
@ -1503,12 +1503,12 @@ void tstp();
|
|||
|
||||
int md_getuid(void);
|
||||
long md_memused(void);
|
||||
int md_normaluser(void);
|
||||
void md_normaluser(void);
|
||||
int md_rand(int range);
|
||||
unsigned int md_random_seed(void);
|
||||
void md_setup(void);
|
||||
int md_shellescape(void);
|
||||
int md_srand(int seed);
|
||||
void md_srand(int seed);
|
||||
|
||||
/*
|
||||
* Now all the global variables
|
||||
|
|
|
|||
|
|
@ -3152,7 +3152,7 @@ md_rand(int range)
|
|||
#endif
|
||||
}
|
||||
|
||||
int
|
||||
void
|
||||
md_srand(int seed)
|
||||
{
|
||||
#ifdef _WIN32
|
||||
|
|
@ -3598,7 +3598,7 @@ md_setup(void)
|
|||
noecho(); /* Echo off */
|
||||
}
|
||||
|
||||
int
|
||||
void
|
||||
md_normaluser(void)
|
||||
{
|
||||
#ifndef _WIN32
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue