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:
John "Elwin" Edwards 2016-01-27 19:41:05 -05:00
parent 384386d71c
commit c1d6a6af6a
32 changed files with 625 additions and 394 deletions

View file

@ -19,6 +19,8 @@
#include <stdlib.h>
#include "rogue.h"
char *killname(char monst, bool doart);
static char *rip[] = {
" __________",
" / \\",
@ -41,9 +43,8 @@ static char *rip[] = {
* Figure score and post it.
*/
/* VARARGS2 */
score(amount, flags, monst)
int amount, flags;
char monst;
void
score(int amount, int flags, char monst)
{
register struct sc_ent *scp;
register int i;
@ -297,8 +298,8 @@ void writelog(int amount, int flags, char monst)
* death:
* Do something really fun when he dies
*/
death(monst)
register char monst;
void
death(char monst)
{
register char **dp = rip, *killer;
register struct tm *lt;
@ -341,7 +342,8 @@ register char monst;
* total_winner:
* Code for a winner
*/
total_winner()
void
total_winner(void)
{
register THING *obj;
register int worth = 0;
@ -461,9 +463,7 @@ total_winner()
* Convert a code to a monster name
*/
char *
killname(monst, doart)
register char monst;
bool doart;
killname(char monst, bool doart)
{
register const char *sp;
register bool article;