mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-31 06:16:03 +00:00
Merge Small fixset 1 for parser code nits
Numbered as 1 because I expect to find and fix more things like this as I continue to dig into the parser code. Signed-off-by: Ryan Lee <ryan.lee@canonical.com> MR: https://gitlab.com/apparmor/apparmor/-/merge_requests/1400 Approved-by: John Johansen <john@jjmx.net> Merged-by: John Johansen <john@jjmx.net>
This commit is contained in:
@@ -179,8 +179,6 @@ struct var_string {
|
||||
#define OPTION_STDOUT 4
|
||||
#define OPTION_OFILE 5
|
||||
|
||||
#define BOOL int
|
||||
|
||||
extern int preprocess_only;
|
||||
|
||||
#define PATH_CHROOT_REL 0x1
|
||||
@@ -213,13 +211,6 @@ do { \
|
||||
errno = perror_error; \
|
||||
} while (0)
|
||||
|
||||
#ifndef TRUE
|
||||
#define TRUE (1)
|
||||
#endif
|
||||
#ifndef FALSE
|
||||
#define FALSE (0)
|
||||
#endif
|
||||
|
||||
#define MIN_PORT 0
|
||||
#define MAX_PORT 65535
|
||||
|
||||
@@ -423,10 +414,10 @@ extern const char *basedir;
|
||||
#define glob_null 1
|
||||
extern pattern_t convert_aaregex_to_pcre(const char *aare, int anchor, int glob,
|
||||
std::string& pcre, int *first_re_pos);
|
||||
extern int build_list_val_expr(std::string& buffer, struct value_list *list);
|
||||
extern int convert_entry(std::string& buffer, char *entry);
|
||||
extern bool build_list_val_expr(std::string& buffer, struct value_list *list);
|
||||
extern bool convert_entry(std::string& buffer, char *entry);
|
||||
extern int clear_and_convert_entry(std::string& buffer, char *entry);
|
||||
extern int convert_range(std::string& buffer, bignum start, bignum end);
|
||||
extern bool convert_range(std::string& buffer, bignum start, bignum end);
|
||||
extern int process_regex(Profile *prof);
|
||||
extern int post_process_entry(struct cod_entry *entry);
|
||||
|
||||
|
Reference in New Issue
Block a user