From 8c1159363aa5cbc84bd603293263488faf34783b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Tue, 5 Apr 2022 15:35:46 +0200 Subject: [PATCH] libsepol/cil: comment out unused function __cil_verify_rule MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The function __cil_verify_rule() is currently not used as all call sites are commented out. Keep the function for future references. Acked-by: James Carter Signed-off-by: Christian Göttsche --- libsepol/cil/src/cil_verify.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libsepol/cil/src/cil_verify.c b/libsepol/cil/src/cil_verify.c index aecbdc19..4640dc59 100644 --- a/libsepol/cil/src/cil_verify.c +++ b/libsepol/cil/src/cil_verify.c @@ -970,7 +970,8 @@ exit: return rc; } -int __cil_verify_rule(struct cil_tree_node *node, struct cil_complex_symtab *symtab) +/* +static int __cil_verify_rule(struct cil_tree_node *node, struct cil_complex_symtab *symtab) { int rc = SEPOL_ERR; @@ -1016,6 +1017,7 @@ exit: cil_tree_log(node, CIL_ERR, "Invalid rule"); return rc; } +*/ static int __cil_verify_booleanif_helper(struct cil_tree_node *node, __attribute__((unused)) uint32_t *finished, __attribute__((unused)) void *extra_args) {