python: mark local functions static

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>
This commit is contained in:
Christian Göttsche 2021-11-12 16:41:57 +01:00 committed by James Carter
parent 55c30addf6
commit c09d63852e
1 changed files with 3 additions and 3 deletions

View File

@ -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);
}