comparison rogue4/mdport.c @ 215:1b73a8641b37

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.
author John "Elwin" Edwards
date Wed, 27 Jan 2016 19:41:05 -0500
parents d53b13637783
children b24545357d2e
comparison
equal deleted inserted replaced
214:e5a15b09ce1d 215:1b73a8641b37
57 57
58 #ifdef __INTERIX 58 #ifdef __INTERIX
59 char *strdup(const char *s); 59 char *strdup(const char *s);
60 #endif 60 #endif
61 61
62 #include <ctype.h>
62 #include <stdlib.h> 63 #include <stdlib.h>
63 #include <string.h> 64 #include <string.h>
64 #include <errno.h> 65 #include <errno.h>
65 66
66 #if defined(_WIN32) && !defined(__MINGW32__) 67 #if defined(_WIN32) && !defined(__MINGW32__)
463 sprintf(uidstr,"%d", uid); 464 sprintf(uidstr,"%d", uid);
464 return(uidstr); 465 return(uidstr);
465 #endif 466 #endif
466 } 467 }
467 468
468 extern char *xcrypt(char *key, char *salt); 469 extern char *xcrypt(const char *key, const char *setting);
469 470
470 char * 471 char *
471 md_crypt(char *key, char *salt) 472 md_crypt(char *key, char *salt)
472 { 473 {
473 return( xcrypt(key,salt) ); 474 return( xcrypt(key,salt) );
1044 int lastch = 0; 1045 int lastch = 0;
1045 int mode = M_NORMAL; 1046 int mode = M_NORMAL;
1046 int mode2 = M_NORMAL; 1047 int mode2 = M_NORMAL;
1047 int nodelayf = 0; 1048 int nodelayf = 0;
1048 int count = 0; 1049 int count = 0;
1050 extern void auto_save(int sig);
1049 1051
1050 for(;;) 1052 for(;;)
1051 { 1053 {
1052 if (mode == M_NORMAL && uindex >= 0) 1054 if (mode == M_NORMAL && uindex >= 0)
1053 { 1055 {