mirror of
https://github.com/SELinuxProject/selinux
synced 2025-03-11 04:37:29 +00:00
libsepol: break circular include
Since `struct type_set` is forward declared including policydb/policydb.h is not necessary and creates a circular include. Also drop the unnecessary forward declaration of `struct policydb`. Signed-off-by: Christian Göttsche <cgzones@googlemail.com> Acked-by: James Carter <jwcart2@gmail.com>
This commit is contained in:
parent
ba9820a002
commit
12beafe7ce
@ -18,7 +18,6 @@
|
|||||||
#ifndef _SEPOL_POLICYDB_CONSTRAINT_H_
|
#ifndef _SEPOL_POLICYDB_CONSTRAINT_H_
|
||||||
#define _SEPOL_POLICYDB_CONSTRAINT_H_
|
#define _SEPOL_POLICYDB_CONSTRAINT_H_
|
||||||
|
|
||||||
#include <sepol/policydb/policydb.h>
|
|
||||||
#include <sepol/policydb/ebitmap.h>
|
#include <sepol/policydb/ebitmap.h>
|
||||||
#include <sepol/policydb/flask_types.h>
|
#include <sepol/policydb/flask_types.h>
|
||||||
|
|
||||||
@ -70,8 +69,6 @@ typedef struct constraint_node {
|
|||||||
struct constraint_node *next; /* next constraint */
|
struct constraint_node *next; /* next constraint */
|
||||||
} constraint_node_t;
|
} constraint_node_t;
|
||||||
|
|
||||||
struct policydb;
|
|
||||||
|
|
||||||
extern int constraint_expr_init(constraint_expr_t * expr);
|
extern int constraint_expr_init(constraint_expr_t * expr);
|
||||||
extern void constraint_expr_destroy(constraint_expr_t * expr);
|
extern void constraint_expr_destroy(constraint_expr_t * expr);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user