comparison 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
comparison
equal deleted inserted replaced
214:e5a15b09ce1d 215:1b73a8641b37
14 14
15 /* 15 /*
16 * whatis: 16 * whatis:
17 * What a certin object is 17 * What a certin object is
18 */ 18 */
19 whatis(insist) 19 void
20 bool insist; 20 whatis(bool insist)
21 { 21 {
22 register THING *obj; 22 register THING *obj;
23 23
24 if (pack == NULL) 24 if (pack == NULL)
25 { 25 {
78 #ifdef WIZARD 78 #ifdef WIZARD
79 /* 79 /*
80 * create_obj: 80 * create_obj:
81 * Wizard command for getting anything he wants 81 * Wizard command for getting anything he wants
82 */ 82 */
83 create_obj() 83 void
84 create_obj(void)
84 { 85 {
85 register THING *obj; 86 register THING *obj;
86 register char ch, bless; 87 register char ch, bless;
87 88
88 obj = new_item(); 89 obj = new_item();
148 149
149 /* 150 /*
150 * telport: 151 * telport:
151 * Bamf the hero someplace else 152 * Bamf the hero someplace else
152 */ 153 */
153 teleport() 154 int
155 teleport(void)
154 { 156 {
155 register int rm; 157 register int rm;
156 coord c; 158 coord c;
157 159
158 mvaddch(hero.y, hero.x, chat(hero.y, hero.x)); 160 mvaddch(hero.y, hero.x, chat(hero.y, hero.x));
192 #ifdef WIZARD 194 #ifdef WIZARD
193 /* 195 /*
194 * passwd: 196 * passwd:
195 * See if user knows password 197 * See if user knows password
196 */ 198 */
197 passwd() 199 bool
200 passwd(void)
198 { 201 {
199 register char *sp, c; 202 register char *sp, c;
200 char buf[MAXSTR], *xcrypt(); 203 char buf[MAXSTR], *xcrypt();
201 204
202 msg("wizard's Password:"); 205 msg("wizard's Password:");
217 220
218 /* 221 /*
219 * show_map: 222 * show_map:
220 * Print out the map for the wizard 223 * Print out the map for the wizard
221 */ 224 */
222 show_map() 225 void
226 show_map(void)
223 { 227 {
224 register int y, x, real; 228 register int y, x, real;
225 229
226 wclear(hw); 230 wclear(hw);
227 for (y = 1; y < LINES - 1; y++) 231 for (y = 1; y < LINES - 1; y++)