diff arogue7/wear.c @ 219:f9ef86cf22b2

Advanced Rogue 7: convert to ANSI-style function declarations. Almost 1500 lines of compiler warnings remain, and the GCC developers are already working on a new version with even more warnings turned on by default.
author John "Elwin" Edwards
date Fri, 19 Feb 2016 21:02:28 -0500
parents cadff8f047a1
children e1cd27c5464f
line wrap: on
line diff
--- a/arogue7/wear.c	Sun Feb 07 14:39:21 2016 -0500
+++ b/arogue7/wear.c	Fri Feb 19 21:02:28 2016 -0500
@@ -26,7 +26,8 @@
  *	Get the armor off of the players back
  */
 
-take_off()
+void
+take_off(void)
 {
     register struct object *obj;
     register struct linked_list *item;
@@ -75,7 +76,8 @@
  *	The player wants to wear something, so let him/her put it on.
  */
 
-wear()
+void
+wear(void)
 {
     register struct linked_list *item;
     register struct object *obj;
@@ -389,8 +391,8 @@
  *	How many movements periods does it take to put on or remove the
  *	given item of "clothing"?
  */
-dress_units(item)
-struct linked_list *item;
+int
+dress_units(struct linked_list *item)
 {
     register struct object *obj;