rogue4: fix most GCC5 warnings.
Converting all function definitions to ANSI style accounts for most of the change. This has exposed other problems, such as daemons not actually being their stated type, that will require more careful solutions.
This commit is contained in:
parent
384386d71c
commit
c1d6a6af6a
32 changed files with 625 additions and 394 deletions
|
|
@ -59,6 +59,7 @@
|
|||
char *strdup(const char *s);
|
||||
#endif
|
||||
|
||||
#include <ctype.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <errno.h>
|
||||
|
|
@ -465,7 +466,7 @@ md_getrealname(int uid)
|
|||
#endif
|
||||
}
|
||||
|
||||
extern char *xcrypt(char *key, char *salt);
|
||||
extern char *xcrypt(const char *key, const char *setting);
|
||||
|
||||
char *
|
||||
md_crypt(char *key, char *salt)
|
||||
|
|
@ -1046,6 +1047,7 @@ md_readchar(WINDOW *win)
|
|||
int mode2 = M_NORMAL;
|
||||
int nodelayf = 0;
|
||||
int count = 0;
|
||||
extern void auto_save(int sig);
|
||||
|
||||
for(;;)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue