diff srogue/potions.c @ 217:94a0d9dd5ce1

Super-Rogue: convert to ANSI-style function declarations. This fixes most of the build warnings.
author John "Elwin" Edwards
date Sun, 31 Jan 2016 13:45:07 -0500
parents 3aa87373c908
children e7862a021609
line wrap: on
line diff
--- a/srogue/potions.c	Thu Jan 28 18:55:47 2016 -0500
+++ b/srogue/potions.c	Sun Jan 31 13:45:07 2016 -0500
@@ -23,7 +23,8 @@
  * quaff:
  *	Let the hero drink a potion
  */
-quaff()
+void
+quaff(void)
 {
 	reg struct object *obj;
 	reg struct linked_list *item, *titem;
@@ -189,7 +190,7 @@
 			p_know[P_XHEAL] = TRUE;
 			if (!iswearing(R_SLOW))
 				notslow(FALSE);
-			unconfuse();
+			unconfuse(FALSE);
 			extinguish(unconfuse);
 			sight(FALSE);
 		}