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

@ -14,11 +14,14 @@
#include <string.h>
#include "rogue.h"
int gethand(void);
/*
* ring_on:
* Put a ring on a hand
*/
ring_on()
void
ring_on(void)
{
register THING *obj;
register int ring;
@ -88,7 +91,8 @@ ring_on()
* ring_off:
* Take off a ring
*/
ring_off()
void
ring_off(void)
{
register int ring;
register THING *obj;
@ -125,7 +129,8 @@ ring_off()
* gethand:
* Which hand is the hero interested in?
*/
gethand()
int
gethand(void)
{
register int c;
@ -153,8 +158,8 @@ gethand()
* ring_eat:
* How much food does this ring use up?
*/
ring_eat(hand)
register int hand;
int
ring_eat(int hand)
{
if (cur_ring[hand] == NULL)
return 0;
@ -186,8 +191,7 @@ register int hand;
* Print ring bonuses
*/
char *
ring_num(obj)
register THING *obj;
ring_num(THING *obj)
{
static char buf[5];