diff arogue5/rings.c @ 218:56e748983fa8

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.
author John "Elwin" Edwards
date Sun, 07 Feb 2016 14:39:21 -0500
parents f2951c4e28d9
children
line wrap: on
line diff
--- a/arogue5/rings.c	Sun Jan 31 13:45:07 2016 -0500
+++ b/arogue5/rings.c	Sun Feb 07 14:39:21 2016 -0500
@@ -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 @@
     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 @@
  * print ring bonuses
  */
 char *
-ring_num(obj)
-register struct object *obj;
+ring_num(struct object *obj)
 {
     static char buf[5];
 
@@ -147,7 +146,8 @@
 /* 
  * Return the effect of the specified ring 
  */
-ring_value(type)
+int
+ring_value(int type)
 {
     int result = 0;