rogue4: fix most GCC5 warnings.

Converting all function definitions to ANSI style accounts for most of
the change.  This has exposed other problems, such as daemons not
actually being their stated type, that will require more careful
solutions.
This commit is contained in:
John "Elwin" Edwards 2016-01-27 19:41:05 -05:00
parent 384386d71c
commit c1d6a6af6a
32 changed files with 625 additions and 394 deletions

View file

@ -29,7 +29,7 @@ struct delayed_action d_list[MAXDAEMONS] = {
* Find an empty slot in the daemon/fuse list
*/
struct delayed_action *
d_slot()
d_slot(void)
{
register int i;
register struct delayed_action *dev;
@ -48,8 +48,7 @@ d_slot()
* Find a particular slot in the table
*/
struct delayed_action *
find_slot(func)
register int (*func)();
find_slot(int (*func)())
{
register int i;
register struct delayed_action *dev;
@ -64,8 +63,8 @@ register int (*func)();
* start_daemon:
* Start a daemon, takes a function.
*/
start_daemon(func, arg, type)
int (*func)(), arg, type;
void
start_daemon(int (*func)(), int arg, int type)
{
register struct delayed_action *dev;
@ -80,8 +79,8 @@ int (*func)(), arg, type;
* kill_daemon:
* Remove a daemon from the list
*/
kill_daemon(func)
int (*func)();
void
kill_daemon(int (*func)())
{
register struct delayed_action *dev;
@ -98,8 +97,8 @@ int (*func)();
* Run all the daemons that are active with the current flag,
* passing the argument to the function.
*/
do_daemons(flag)
register int flag;
void
do_daemons(int flag)
{
register struct delayed_action *dev;
@ -118,8 +117,8 @@ register int flag;
* fuse:
* Start a fuse to go off in a certain number of turns
*/
fuse(func, arg, time, type)
int (*func)(), arg, time, type;
void
fuse(int (*func)(), int arg, int time, int type)
{
register struct delayed_action *wire;
@ -134,9 +133,8 @@ int (*func)(), arg, time, type;
* lengthen:
* Increase the time until a fuse goes off
*/
lengthen(func, xtime)
int (*func)();
int xtime;
void
lengthen(int (*func)(), int xtime)
{
register struct delayed_action *wire;
@ -149,8 +147,8 @@ int xtime;
* extinguish:
* Put out a fuse
*/
extinguish(func)
int (*func)();
void
extinguish(int (*func)())
{
register struct delayed_action *wire;
@ -163,8 +161,8 @@ int (*func)();
* do_fuses:
* Decrement counters and start needed fuses
*/
do_fuses(flag)
register int flag;
void
do_fuses(int flag)
{
register struct delayed_action *wire;