Mercurial > hg > early-roguelike
diff rogue3/rogue.h @ 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 | e7862a021609 |
children |
line wrap: on
line diff
--- a/rogue3/rogue.h Fri Sep 22 16:24:40 2017 -0400 +++ b/rogue3/rogue.h Sat Sep 23 09:47:00 2017 -0400 @@ -469,7 +469,7 @@ extern struct magic_item p_magic[MAXPOTIONS]; /* Names and chances for potions */ extern struct thing player; /* The rogue */ extern int playing; /* True until he quits */ -extern unsigned char prbuf[80]; /* Buffer for sprintfs */ +extern char prbuf[80]; /* Buffer for sprintfs */ extern int purse; /* How much gold the rogue has */ extern int quiet; /* Number of quiet turns */ extern char * r_guess[MAXRINGS]; /* Players guess at what ring is */