diff rogue4/wizard.c @ 215:1b73a8641b37

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.
author John "Elwin" Edwards
date Wed, 27 Jan 2016 19:41:05 -0500
parents 00e90f1bffd6
children e7aab31362af
line wrap: on
line diff
--- a/rogue4/wizard.c	Sat Jan 23 09:35:14 2016 -0500
+++ b/rogue4/wizard.c	Wed Jan 27 19:41:05 2016 -0500
@@ -16,8 +16,8 @@
  * whatis:
  *	What a certin object is
  */
-whatis(insist)
-bool insist;
+void
+whatis(bool insist)
 {
     register THING *obj;
 
@@ -80,7 +80,8 @@
  * create_obj:
  *	Wizard command for getting anything he wants
  */
-create_obj()
+void
+create_obj(void)
 {
     register THING *obj;
     register char ch, bless;
@@ -150,7 +151,8 @@
  * telport:
  *	Bamf the hero someplace else
  */
-teleport()
+int
+teleport(void)
 {
     register int rm;
     coord c;
@@ -194,7 +196,8 @@
  * passwd:
  *	See if user knows password
  */
-passwd()
+bool
+passwd(void)
 {
     register char *sp, c;
     char buf[MAXSTR], *xcrypt();
@@ -219,7 +222,8 @@
  * show_map:
  *	Print out the map for the wizard
  */
-show_map()
+void
+show_map(void)
 {
     register int y, x, real;