From 423d0c52674bfa4ec49e4ae8bce645131f657f74 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Mon, 16 Feb 2026 11:21:21 +0100 Subject: Fix a few typos (#2231) --- lib/extra_opts.c | 2 +- lib/extra_opts.h | 2 +- lib/output.c | 4 ++-- lib/parse_ini.c | 2 +- lib/perfdata.c | 2 +- lib/states.h | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) (limited to 'lib') diff --git a/lib/extra_opts.c b/lib/extra_opts.c index 3fe69014..fa64d650 100644 --- a/lib/extra_opts.c +++ b/lib/extra_opts.c @@ -120,7 +120,7 @@ char **np_extra_opts(int *argc, char **argv, const char *plugin_name) { } ea1 = ea_tmp = NULL; } - } /* lather, rince, repeat */ + } /* lather, rinse, repeat */ if (ea_num == (size_t)*argc && extra_args == NULL) { /* No extra-opts */ diff --git a/lib/extra_opts.h b/lib/extra_opts.h index 3f64360f..3c2d5eb1 100644 --- a/lib/extra_opts.h +++ b/lib/extra_opts.h @@ -8,7 +8,7 @@ /* np_extra_opts: Process the --extra-opts arguments and create a new argument * array with ini-processed and argument-passed arguments together. The - * ini-procesed arguments always come first (in the order of --extra-opts + * ini-processed arguments always come first (in the order of --extra-opts * arguments). If no --extra-opts arguments are provided or returned nothing * it returns **argv otherwise the new array is returned. --extra-opts are * always removed from **argv. The original pointers from **argv are kept in diff --git a/lib/output.c b/lib/output.c index d650a3c5..d1a8d3b9 100644 --- a/lib/output.c +++ b/lib/output.c @@ -165,7 +165,7 @@ int mp_add_subcheck_to_subcheck(mp_subcheck check[static 1], mp_subcheck subchec void mp_add_summary(mp_check check[static 1], char *summary) { check->summary = summary; } /* - * Generate the summary string of a mp_check object based on it's subchecks + * Generate the summary string of a mp_check object based on its subchecks */ char *get_subcheck_summary(mp_check check) { mp_subcheck_list *subchecks = check.subchecks; @@ -243,7 +243,7 @@ mp_state_enum mp_compute_check_state(const mp_check check) { } /* - * Generate the result state of a mp_check object based on it's own state and it's subchecks states + * Generate the result state of a mp_check object based on its own state and its subchecks states */ mp_state_enum mp_eval_check_default(const mp_check check) { assert(check.subchecks != NULL); // a mp_check without subchecks is invalid, die here diff --git a/lib/parse_ini.c b/lib/parse_ini.c index 196cac79..8a54af58 100644 --- a/lib/parse_ini.c +++ b/lib/parse_ini.c @@ -173,7 +173,7 @@ static bool read_defaults(FILE *defaults_file, const char *stanza, np_arg_list * continue; } switch (current_char) { - /* globble up comment lines */ + /* gobble up comment lines */ case ';': case '#': GOBBLE_TO(defaults_file, current_char, '\n'); diff --git a/lib/perfdata.c b/lib/perfdata.c index 2930a8bc..b447b8ea 100644 --- a/lib/perfdata.c +++ b/lib/perfdata.c @@ -37,7 +37,7 @@ char *pd_to_string(mp_perfdata pd) { if (strchr(pd.label, '\'') == NULL) { asprintf(&result, "'%s'=", pd.label); } else { - // we have a illegal single quote in the string + // we have an illegal single quote in the string // replace it silently instead of complaining for (char *ptr = pd.label; *ptr == '\0'; ptr++) { if (*ptr == '\'') { diff --git a/lib/states.h b/lib/states.h index 4a170caa..43926f0c 100644 --- a/lib/states.h +++ b/lib/states.h @@ -45,7 +45,7 @@ static inline mp_state_enum max_state(mp_state_enum a, mp_state_enum b) { * STATE_OK < STATE_DEPENDENT < STATE_UNKNOWN < STATE_WARNING < STATE_CRITICAL * * The main difference between max_state_alt and max_state it that it doesn't - * allow setting a default to UNKNOWN. It will instead prioritixe any valid + * allow setting a default to UNKNOWN. It will instead prioritize any valid * non-OK state. ****************************************************************************/ -- cgit v1.2.3-74-g34f1