From 829aedd9237cabaaa9c967d40e23e95d1dd52e98 Mon Sep 17 00:00:00 2001 From: PatR Date: Fri, 16 Sep 2022 16:38:44 -0700 Subject: [PATCH] insults random_insult[] and random_malediction[] are only used in wizard.c so make them file-scope static instead of global. --- src/wizard.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/wizard.c b/src/wizard.c index 63ae39a9b..327697a16 100644 --- a/src/wizard.c +++ b/src/wizard.c @@ -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",