Mercurial > hg > early-roguelike
diff 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 |
line wrap: on
line diff
--- a/rogue3/init.c Fri Sep 22 16:24:40 2017 -0400 +++ b/rogue3/init.c Sat Sep 23 09:47:00 2017 -0400 @@ -65,7 +65,7 @@ char *ws_type[MAXSTICKS]; /* Is it a wand or a staff */ char file_name[256]; /* Save file name */ char home[PATH_MAX]; /* User's home directory */ -unsigned char prbuf[80]; /* Buffer for sprintfs */ +char prbuf[80]; /* Buffer for sprintfs */ int max_hp; /* Player's max hit points */ int ntraps; /* Number of traps on this level */ int max_level; /* Deepest player has gone */