summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Moore <paul@paul-moore.com>2023-05-09 13:28:44 -0400
committerPaul Moore <paul@paul-moore.com>2023-05-09 13:56:54 -0400
commitf1c3196d9b95de22dde8f23c5befcbeabef5711c (patch)
tree5b31532d0fcf72c3aaa1c99e2fc79fa9dd09d621
parent31583fab12370da984785cd16ceb8f031c94ae76 (diff)
downloadlibseccomp-main.tar.gz
tools: update astyle config for astyle v3.2.xHEADmain
It appears that '--indent-preprocessor' and '--max-instatement-indent' are no longer supported command line options, remove them. Minor tweak to db_col_init() to appease astyle, no functional changes. Signed-off-by: Paul Moore <paul@paul-moore.com>
-rw-r--r--src/db.c10
-rwxr-xr-xtools/check-syntax3
2 files changed, 5 insertions, 8 deletions
diff --git a/src/db.c b/src/db.c
index 02d462e..ddc01c3 100644
--- a/src/db.c
+++ b/src/db.c
@@ -1123,14 +1123,12 @@ struct db_filter_col *db_col_init(uint32_t def_action)
return NULL;
/* reset the DB to a known state */
- if (db_col_reset(col, def_action) < 0)
- goto init_failure;
+ if (db_col_reset(col, def_action) < 0) {
+ db_col_release(col);
+ return NULL;
+ }
return col;
-
-init_failure:
- db_col_release(col);
- return NULL;
}
/**
diff --git a/tools/check-syntax b/tools/check-syntax
index a8df9f9..6a80035 100755
--- a/tools/check-syntax
+++ b/tools/check-syntax
@@ -81,10 +81,9 @@ function tool_c_style() {
cat - | astyle --options=none --lineend=linux --mode=c \
--style=linux \
--indent=force-tab=8 \
- --indent-preprocessor \
--indent-col1-comments \
--min-conditional-indent=0 \
- --max-instatement-indent=80 \
+ --max-continuation-indent=80 \
--pad-oper \
--align-pointer=name \
--align-reference=name \