Advanced Rogue 5: convert to ANSI function declarations.

This still leaves over a thousand lines of warning messages, mostly
related to the return types of daemons and fuses.
This commit is contained in:
John "Elwin" Edwards 2016-02-07 14:39:21 -05:00
parent 59f448e92e
commit f38b2223c8
37 changed files with 977 additions and 733 deletions

View file

@ -20,8 +20,8 @@
/*
* 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;
@ -45,8 +45,8 @@ register int hand;
return 0;
}
ring_on(obj)
register struct object *obj;
void
ring_on(struct object *obj)
{
register int save_max;
char buf[LINELEN];
@ -112,8 +112,7 @@ register struct object *obj;
* print ring bonuses
*/
char *
ring_num(obj)
register struct object *obj;
ring_num(struct object *obj)
{
static char buf[5];
@ -147,7 +146,8 @@ register struct object *obj;
/*
* Return the effect of the specified ring
*/
ring_value(type)
int
ring_value(int type)
{
int result = 0;