selinux.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] libsepol: break circular include
@ 2022-07-13 13:43 Christian Göttsche
  2022-07-13 13:43 ` [PATCH 2/3] libsepol: include necessary headers in headers Christian Göttsche
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Christian Göttsche @ 2022-07-13 13:43 UTC (permalink / raw)
  To: selinux

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>
---
 libsepol/include/sepol/policydb/constraint.h | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/libsepol/include/sepol/policydb/constraint.h b/libsepol/include/sepol/policydb/constraint.h
index b91fc4e9..82335e21 100644
--- a/libsepol/include/sepol/policydb/constraint.h
+++ b/libsepol/include/sepol/policydb/constraint.h
@@ -18,7 +18,6 @@
 #ifndef _SEPOL_POLICYDB_CONSTRAINT_H_
 #define _SEPOL_POLICYDB_CONSTRAINT_H_
 
-#include <sepol/policydb/policydb.h>
 #include <sepol/policydb/ebitmap.h>
 #include <sepol/policydb/flask_types.h>
 
@@ -70,8 +69,6 @@ typedef struct constraint_node {
 	struct constraint_node *next;	/* next constraint */
 } constraint_node_t;
 
-struct policydb;
-
 extern int constraint_expr_init(constraint_expr_t * expr);
 extern void constraint_expr_destroy(constraint_expr_t * expr);
 
-- 
2.36.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-08-09 15:18 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-13 13:43 [PATCH 1/3] libsepol: break circular include Christian Göttsche
2022-07-13 13:43 ` [PATCH 2/3] libsepol: include necessary headers in headers Christian Göttsche
2022-07-13 13:43 ` [PATCH 3/3] libsepol: enclose macro parameters and replacement lists in parentheses Christian Göttsche
2022-07-19 16:29 ` [PATCH 1/3] libsepol: break circular include James Carter
2022-08-09 15:18   ` James Carter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).