mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-31 14:25:52 +00:00
parser: convert valid_prefix and add_prefix to use const
The prefix can passed as a parameter can be const so it should be. Signed-off-by: John Johansen <john.johansen@canonical.com>
This commit is contained in:
@@ -135,9 +135,9 @@ public:
|
||||
owner = 0;
|
||||
};
|
||||
|
||||
virtual bool valid_prefix(prefixes &p, const char *&error) = 0;
|
||||
virtual bool valid_prefix(const prefixes &p, const char *&error) = 0;
|
||||
|
||||
virtual bool add_prefix(prefixes &p, const char *&error) {
|
||||
virtual bool add_prefix(const prefixes &p, const char *&error) {
|
||||
if (!valid_prefix(p, error))
|
||||
return false;
|
||||
if (p.audit != AUDIT_UNSPECIFIED && audit != p.audit) {
|
||||
|
Reference in New Issue
Block a user