diff srogue/new_leve.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 2128c7dc8a40
children e52a8a7ad4c5
line wrap: on
line diff
--- a/srogue/new_leve.c	Thu Jan 28 18:55:47 2016 -0500
+++ b/srogue/new_leve.c	Sun Jan 31 13:45:07 2016 -0500
@@ -17,14 +17,16 @@
 #include "rogue.h"
 #include "rogue.ext"
 
+void put_things(void);
+
 /*
  * new_level:
  *	Dig and draw a new level 
  */
-new_level(ltype)
-int ltype;
+void
+new_level(int ltype)
 {
-	register i;
+	register int i;
 	register char ch;
 	struct coord traploc;
 	struct room *rp;
@@ -145,9 +147,10 @@
  * rnd_room:
  *	Pick a room that is really there
  */
-rnd_room()
+int
+rnd_room(void)
 {
-	register rm;
+	register int rm;
 
 	if (levtype != NORMLEV)
 		rm = 0;
@@ -166,9 +169,10 @@
  *	put potions and scrolls on this level
  */
 
-put_things()
+void
+put_things(void)
 {
-	register i, cnt, rm;
+	register int i, cnt, rm;
 	struct linked_list *item;
 	struct object *cur;
 	struct coord tp;