@@ -67,7 +67,7 @@ extern int mls;
/* Takes base, some number of modules, links them, and expands them
reads source from myfiles array, which has the base string followed by
each module string */
-int expander_policy_init(policydb_t * mybase, int num_modules, policydb_t ** mymodules, policydb_t * myexpanded, const char *const *myfiles)
+static int expander_policy_init(policydb_t * mybase, int num_modules, policydb_t ** mymodules, policydb_t * myexpanded, const char *const *myfiles)
{
char *filename[num_modules + 1];
int i;
@@ -55,7 +55,7 @@ typedef struct test_cond_expr {
uint32_t expr_type;
} test_cond_expr_t;
-void test_cond_expr_mapping(policydb_t * p, avrule_decl_t * d, test_cond_expr_t * bools, int len)
+static void test_cond_expr_mapping(policydb_t * p, avrule_decl_t * d, test_cond_expr_t * bools, int len)
{
int i;
cond_expr_t *expr;
@@ -76,7 +76,7 @@ void test_cond_expr_mapping(policydb_t * p, avrule_decl_t * d, test_cond_expr_t
}
}
-void test_bool_state(policydb_t * p, const char *bool, int state)
+static void test_bool_state(policydb_t * p, const char *bool, int state)
{
cond_bool_datum_t *b;
This is needed to use "-Wmissing-prototypes". Signed-off-by: James Carter <jwcart2@gmail.com> --- libsepol/tests/test-expander.c | 2 +- libsepol/tests/test-linker-cond-map.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-)