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
|
|
@ -111,7 +111,7 @@ md_init(void)
|
|||
|
||||
static int md_standout_mode = 0;
|
||||
|
||||
int
|
||||
void
|
||||
md_raw_standout(void)
|
||||
{
|
||||
#ifdef _WIN32
|
||||
|
|
@ -134,7 +134,7 @@ md_raw_standout(void)
|
|||
#endif
|
||||
}
|
||||
|
||||
int
|
||||
void
|
||||
md_raw_standend(void)
|
||||
{
|
||||
#ifdef _WIN32
|
||||
|
|
@ -213,7 +213,7 @@ md_creat(char *file, int mode)
|
|||
}
|
||||
|
||||
|
||||
int
|
||||
void
|
||||
md_normaluser(void)
|
||||
{
|
||||
#ifndef _WIN32
|
||||
|
|
@ -581,7 +581,7 @@ md_rand(void)
|
|||
#endif
|
||||
}
|
||||
|
||||
int
|
||||
void
|
||||
md_srand(int seed)
|
||||
{
|
||||
#ifdef _WIN32
|
||||
|
|
|
|||
|
|
@ -1417,12 +1417,12 @@ char *md_getusername(void);
|
|||
void md_init(void);
|
||||
int md_killchar(void);
|
||||
long md_memused(void);
|
||||
int md_normaluser(void);
|
||||
void md_normaluser(void);
|
||||
int md_rand(void);
|
||||
unsigned int md_random_seed(void);
|
||||
int md_readchar(WINDOW *win);
|
||||
int md_shellescape(void);
|
||||
int md_srand(int seed);
|
||||
void md_srand(int seed);
|
||||
int md_unlink(char *file);
|
||||
int md_unlink_open_file(char *file, FILE *inf);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue