comparison rogue3/init.c @ 285:17005af49963

Fix some potential problems detected by clang. Most of these are unnecessary comparisons and functions returning the wrong types.
author John "Elwin" Edwards
date Sat, 23 Sep 2017 09:47:00 -0400
parents ee250e3646fd
children 0250220d8cdd
comparison
equal deleted inserted replaced
284:6376b514a30b 285:17005af49963
63 char *r_guess[MAXRINGS]; /* Players guess at what ring is */ 63 char *r_guess[MAXRINGS]; /* Players guess at what ring is */
64 char *ws_guess[MAXSTICKS]; /* Players guess at what wand is */ 64 char *ws_guess[MAXSTICKS]; /* Players guess at what wand is */
65 char *ws_type[MAXSTICKS]; /* Is it a wand or a staff */ 65 char *ws_type[MAXSTICKS]; /* Is it a wand or a staff */
66 char file_name[256]; /* Save file name */ 66 char file_name[256]; /* Save file name */
67 char home[PATH_MAX]; /* User's home directory */ 67 char home[PATH_MAX]; /* User's home directory */
68 unsigned char prbuf[80]; /* Buffer for sprintfs */ 68 char prbuf[80]; /* Buffer for sprintfs */
69 int max_hp; /* Player's max hit points */ 69 int max_hp; /* Player's max hit points */
70 int ntraps; /* Number of traps on this level */ 70 int ntraps; /* Number of traps on this level */
71 int max_level; /* Deepest player has gone */ 71 int max_level; /* Deepest player has gone */
72 int seed; /* Random number seed */ 72 int seed; /* Random number seed */
73 73