From f8aad020f7c0be604da8981663b6d815f94ffaa4 Mon Sep 17 00:00:00 2001 From: Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> Date: Wed, 10 Jun 2026 14:49:33 +0200 Subject: Run clang-format on everything once again (#2275) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Lorenz Kästle --- lib/output.h | 2 +- lib/parse_ini.c | 3 ++- lib/perfdata.c | 6 +++--- lib/utils_cmd.h | 10 +++++----- 4 files changed, 11 insertions(+), 10 deletions(-) (limited to 'lib') diff --git a/lib/output.h b/lib/output.h index b9cdb07d..37486925 100644 --- a/lib/output.h +++ b/lib/output.h @@ -65,7 +65,7 @@ mp_output_detail_level mp_get_level_of_detail(void); */ typedef struct mp_check mp_check; struct mp_check { - char *summary; // Overall summary, if not set a summary will be automatically generated + char *summary; // Overall summary, if not set a summary will be automatically generated char *ok_summary; // (optional) Summary if the overall state is OK mp_subcheck_list *subchecks; diff --git a/lib/parse_ini.c b/lib/parse_ini.c index 8a54af58..98207051 100644 --- a/lib/parse_ini.c +++ b/lib/parse_ini.c @@ -130,7 +130,8 @@ np_arg_list *np_get_defaults(const char *locator, const char *default_section) { np_arg_list *defaults = NULL; if (!read_defaults(inifile, ini_info.stanza, &defaults)) { - die(STATE_UNKNOWN, _("Invalid section '%s' in config file '%s'\n"), ini_info.stanza, ini_info.file); + die(STATE_UNKNOWN, _("Invalid section '%s' in config file '%s'\n"), ini_info.stanza, + ini_info.file); } if (ini_info.file_string_on_heap) { diff --git a/lib/perfdata.c b/lib/perfdata.c index e3710ec7..f57f7c06 100644 --- a/lib/perfdata.c +++ b/lib/perfdata.c @@ -253,9 +253,9 @@ char *mp_range_to_string(const mp_range input) { } else { // check for zeroes, so we can use the short form if ((input.start.type == PD_TYPE_NONE) || - ((input.start.type == PD_TYPE_INT) && (input.start.pd_int == 0)) || - ((input.start.type == PD_TYPE_UINT) && (input.start.pd_uint == 0)) || - ((input.start.type == PD_TYPE_DOUBLE) && (input.start.pd_double == 0))){ + ((input.start.type == PD_TYPE_INT) && (input.start.pd_int == 0)) || + ((input.start.type == PD_TYPE_UINT) && (input.start.pd_uint == 0)) || + ((input.start.type == PD_TYPE_DOUBLE) && (input.start.pd_double == 0))) { // nothing to do here } else { // Start value is an actual value diff --git a/lib/utils_cmd.h b/lib/utils_cmd.h index 04a624b8..e4869ce8 100644 --- a/lib/utils_cmd.h +++ b/lib/utils_cmd.h @@ -22,13 +22,13 @@ int cmd_run_array(char *const *, output *, output *, int); int cmd_file_read(const char *, output *, int); typedef struct { - int error_code; - int cmd_error_code; - output out; - output err; + int error_code; + int cmd_error_code; + output out; + output err; } cmd_run_result; cmd_run_result cmd_run2(const char *cmd, int flags); -cmd_run_result cmd_run_array2(char * const *cmd, int flags); +cmd_run_result cmd_run_array2(char *const *cmd, int flags); /* only multi-threaded plugins need to bother with this */ void cmd_init(void); -- cgit v1.2.3-74-g34f1