random_insult[] and random_malediction[] are only used in wizard.c
so make them file-scope static instead of global.
This commit is contained in:
PatR
2022-09-16 16:38:44 -07:00
parent e4ff874e0b
commit 829aedd923

View File

@@ -504,8 +504,8 @@ clonewiz(void)
/* also used by newcham() */
int
pick_nasty(int difcap) /* if non-zero, try to make difficulty be lower
than this */
pick_nasty(
int difcap) /* if non-zero, try to make difficulty be lower than this */
{
int alt, res = nasties[rn2(SIZE(nasties))];
@@ -783,7 +783,7 @@ wizdead(void)
}
}
const char *const random_insult[] = {
static const char *const random_insult[] = {
"antic", "blackguard", "caitiff", "chucklehead",
"coistrel", "craven", "cretin", "cur",
"dastard", "demon fodder", "dimwit", "dolt",
@@ -794,7 +794,7 @@ const char *const random_insult[] = {
"wittol", "worm", "wretch",
};
const char *const random_malediction[] = {
static const char *const random_malediction[] = {
"Hell shall soon claim thy remains,", "I chortle at thee, thou pathetic",
"Prepare to die, thou", "Resistance is useless,",
"Surrender or die, thou", "There shall be no mercy, thou",