@@ -56,7 +56,7 @@ static int perm_name(hashtab_key_t key, hashtab_datum_t datum, void *data)
return 0;
}
-int render_access_mask(uint32_t av, avtab_key_t *key, policydb_t *policydbp,
+static int render_access_mask(uint32_t av, avtab_key_t *key, policydb_t *policydbp,
FILE *fp)
{
struct val_to_name v;
@@ -111,7 +111,7 @@ struct callback_data
FILE *fp;
};
-int output_avrule(avtab_key_t *key, avtab_datum_t *datum, void *args)
+static int output_avrule(avtab_key_t *key, avtab_datum_t *datum, void *args)
{
struct callback_data *cb_data = (struct callback_data *)args;
@@ -217,7 +217,7 @@ static policydb_t *load_policy(const char *filename)
}
-void usage(char *progname)
+static void usage(char *progname)
{
printf("usage: %s out_file [policy_file]\n", progname);
}
sepolgen-ifgen-attr-helper.c:59:5: warning: no previous prototype for ‘render_access_mask’ [-Wmissing-prototypes] 59 | int render_access_mask(uint32_t av, avtab_key_t *key, policydb_t *policydbp, | ^~~~~~~~~~~~~~~~~~ sepolgen-ifgen-attr-helper.c:114:5: warning: no previous prototype for ‘output_avrule’ [-Wmissing-prototypes] 114 | int output_avrule(avtab_key_t *key, avtab_datum_t *datum, void *args) | ^~~~~~~~~~~~~ sepolgen-ifgen-attr-helper.c:220:6: warning: no previous prototype for ‘usage’ [-Wmissing-prototypes] 220 | void usage(char *progname) | ^~~~~ Signed-off-by: Christian Göttsche <cgzones@googlemail.com> --- python/audit2allow/sepolgen-ifgen-attr-helper.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)