comparison rogue4/potions.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 9535a08ddc39
children 696277507a2e
comparison
equal deleted inserted replaced
214:e5a15b09ce1d 215:1b73a8641b37
15 15
16 /* 16 /*
17 * quaff: 17 * quaff:
18 * Quaff a potion from the pack 18 * Quaff a potion from the pack
19 */ 19 */
20 quaff() 20 void
21 quaff(void)
21 { 22 {
22 register THING *obj, *th; 23 register THING *obj, *th;
23 register bool discardit = FALSE; 24 register bool discardit = FALSE;
24 25
25 obj = get_item("quaff", POTION); 26 obj = get_item("quaff", POTION);
201 202
202 /* 203 /*
203 * invis_on: 204 * invis_on:
204 * Turn on the ability to see invisible 205 * Turn on the ability to see invisible
205 */ 206 */
206 invis_on() 207 void
208 invis_on(void)
207 { 209 {
208 register THING *th; 210 register THING *th;
209 211
210 player.t_flags |= CANSEE; 212 player.t_flags |= CANSEE;
211 for (th = mlist; th != NULL; th = next(th)) 213 for (th = mlist; th != NULL; th = next(th))
218 220
219 /* 221 /*
220 * see_monst: 222 * see_monst:
221 * Put on or off seeing monsters on this level 223 * Put on or off seeing monsters on this level
222 */ 224 */
223 turn_see(turn_off) 225 bool
224 register bool turn_off; 226 turn_see(bool turn_off)
225 { 227 {
226 register THING *mp; 228 register THING *mp;
227 register bool can_see, add_new; 229 register bool can_see, add_new;
228 230
229 add_new = FALSE; 231 add_new = FALSE;