Super-Rogue: convert to ANSI-style function declarations.

This fixes most of the build warnings.
This commit is contained in:
John "Elwin" Edwards 2016-01-31 13:45:07 -05:00
parent 0f87d5b4d8
commit 59f448e92e
33 changed files with 783 additions and 518 deletions

View file

@ -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 @@ again:
* 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 @@ rnd_room()
* 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;