checkpolicy: declare file local variable static

The variable policy_type used by checkmodule is only used inside of
checkmodule.c.

Signed-off-by: Christian Göttsche <cgzones@googlemail.com>
Acked-by: James Carter <jwcart2@gmail.com>
This commit is contained in:
Christian Göttsche 2024-04-08 17:08:01 +02:00 committed by James Carter
parent f4ffda66d6
commit 505d1b4ce8
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ static int handle_unknown = SEPOL_DENY_UNKNOWN;
static const char *txtfile = "policy.conf"; static const char *txtfile = "policy.conf";
static const char *binfile = "policy"; static const char *binfile = "policy";
unsigned int policy_type = POLICY_BASE; static unsigned int policy_type = POLICY_BASE;
unsigned int policyvers = MOD_POLICYDB_VERSION_MAX; unsigned int policyvers = MOD_POLICYDB_VERSION_MAX;
static int read_binary_policy(policydb_t * p, const char *file, const char *progname) static int read_binary_policy(policydb_t * p, const char *file, const char *progname)