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