diff xrogue/scrolls.c @ 220:f54901b9c39b

XRogue: convert to ANSI-style function declarations.
author John "Elwin" Edwards
date Wed, 02 Mar 2016 21:13:26 -0500
parents 0298a68cc179
children e52a8a7ad4c5
line wrap: on
line diff
--- a/xrogue/scrolls.c	Fri Feb 19 21:02:28 2016 -0500
+++ b/xrogue/scrolls.c	Wed Mar 02 21:13:26 2016 -0500
@@ -17,6 +17,7 @@
 */
 
 #include <stdlib.h>
+#include <string.h>
 #include <curses.h>
 #include <ctype.h>
 #include "rogue.h"
@@ -25,7 +26,8 @@
  * let the hero get rid of some type of monster 
  */
 
-genocide()
+void
+genocide(void)
 {
     register struct linked_list *ip;
     register struct thing *mp;
@@ -56,10 +58,8 @@
     msg("You have wiped out the %s.", monsters[which_monst].m_name);
 }
 
-read_scroll(which, flag, is_scroll)
-register int which;
-int flag;
-bool is_scroll;
+void
+read_scroll(int which, int flag, bool is_scroll)
 {
     register struct object *obj = NULL, *nobj;
     register struct linked_list *item, *nitem;
@@ -499,7 +499,7 @@
                     nobj->o_flags &= ~ISCURSED;
                 }
                 msg("Your pack glistens brightly!");
-                do_panic(NULL);         /* this startles them */
+                do_panic(0);         /* this startles them */
         /* return; leaks item, go through end of function */
             }
             else {