From 59e16e10b41c764327fd92fd1ad800859e1fd797 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sat, 1 Jan 2022 13:50:51 -0600 Subject: [PATCH] Yank some unnecessarily exported global variables that should be static. --- lib/portability.c | 3 +-- scripts/findglobals.sh | 2 +- toys/other/chrt.c | 2 +- toys/posix/getconf.c | 10 +++++----- 4 files changed, 8 insertions(+), 9 deletions(-) diff --git a/lib/portability.c b/lib/portability.c index 3e5520cc..a175b346 100644 --- a/lib/portability.c +++ b/lib/portability.c @@ -457,7 +457,6 @@ static const struct signame signames[] = { // Non-POSIX signals that don't cause termination SIGNIFY(WINCH), }; -int signames_len = ARRAY_LEN(signames); #undef SIGNIFY @@ -511,7 +510,7 @@ char *num_to_sig(int sig) int i; // A named signal? - for (i=0; i