2
0
mirror of https://gitlab.com/apparmor/apparmor synced 2025-08-22 10:07:12 +00:00

parser: convert subset flag to a bool

Signed-off-by: John Johansen <john.johansen@canonical.com>
This commit is contained in:
John Johansen 2021-09-08 02:50:31 -07:00
parent c36d4e9c03
commit f76d134b6c
3 changed files with 5 additions and 5 deletions

View File

@ -128,7 +128,7 @@ struct cod_entry {
bool alias_ignore; /* ignore for alias processing */
int subset;
bool subset;
pattern_t pattern_type;
struct cod_pattern pat;

View File

@ -44,7 +44,7 @@ static int file_comp(const void *c1, const void *c2)
return res;
if ((*e1)->link_name)
res = (*e2)->subset - (*e1)->subset;
res = ((int) (*e2)->subset) - ((int) (*e1)->subset);
if (res)
return res;

View File

@ -648,9 +648,9 @@ flagval: TOK_VALUE
$$ = fv;
};
opt_subset_flag: { /* nothing */ $$ = 0; }
| TOK_SUBSET { $$ = 1; }
| TOK_LE { $$ = 1; }
opt_subset_flag: { /* nothing */ $$ = false; }
| TOK_SUBSET { $$ = true; }
| TOK_LE { $$ = true; }
opt_audit_flag: { /* nothing */ $$ = AUDIT_UNSPECIFIED; }
| TOK_AUDIT { $$ = AUDIT_FORCE; };