some lint cleanup
Building with an old version of gcc with various warnings enabled generated a lot of noise. Most of it was due to not guarding string literals with `const', but there were a couple of actual problems too.
This commit is contained in:
@@ -1636,7 +1636,7 @@ gulpmu(mtmp, mattk) /* monster swallows you, or damage if u.uswallow */
|
||||
|
||||
i = number_leashed();
|
||||
if (i > 0) {
|
||||
char *s = (i > 1) ? "leashes" : "leash";
|
||||
const char *s = (i > 1) ? "leashes" : "leash";
|
||||
pline_The("%s %s loose.", s, vtense(s, "snap"));
|
||||
unleash_all();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user