mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-22 01:57:43 +00:00
parser: convert subset flag to a bool
Signed-off-by: John Johansen <john.johansen@canonical.com>
This commit is contained in:
parent
c36d4e9c03
commit
f76d134b6c
@ -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;
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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; };
|
||||
|
Loading…
x
Reference in New Issue
Block a user