diff xrogue/wear.c @ 220:f54901b9c39b

XRogue: convert to ANSI-style function declarations.
author John "Elwin" Edwards
date Wed, 02 Mar 2016 21:13:26 -0500
parents cadff8f047a1
children 7c1cb43f346e
line wrap: on
line diff
--- a/xrogue/wear.c	Fri Feb 19 21:02:28 2016 -0500
+++ b/xrogue/wear.c	Wed Mar 02 21:13:26 2016 -0500
@@ -20,12 +20,15 @@
 #include <curses.h>
 #include "rogue.h"
 
+int dress_units(struct linked_list *item);
+
 /*
  * take_off:
  *      Get the armor off of the players back
  */
 
-take_off()
+void
+take_off(void)
 {
     register struct object *obj;
     register struct linked_list *item;
@@ -74,7 +77,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;
@@ -395,8 +399,8 @@
  *      given item of "clothing"?
  */
 
-dress_units(item)
-struct linked_list *item;
+int
+dress_units(struct linked_list *item)
 {
     register struct object *obj;