From 423d0c52674bfa4ec49e4ae8bce645131f657f74 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Mon, 16 Feb 2026 11:21:21 +0100 Subject: [PATCH] Fix a few typos (#2231) --- doc/NEW_STARTERS | 2 +- doc/RELEASING.md | 2 +- doc/developer-guidelines.sgml | 10 +++++----- 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 +- tools/distclean | 2 +- tools/p1.pl | 2 +- 11 files changed, 16 insertions(+), 16 deletions(-) diff --git a/doc/NEW_STARTERS b/doc/NEW_STARTERS index 2c5aac88..4fda35fb 100644 --- a/doc/NEW_STARTERS +++ b/doc/NEW_STARTERS @@ -10,7 +10,7 @@ Need to know: 1. Add member to team mailing list (https://www.monitoring-plugins.org/list/listinfo/team/) and to the commits mailing list (https://www.monitoring-plugins.org/list/listinfo/commits/), - add sourceforge email address via Privacy Options->Sender filters) + add sourceforge email address via Privacy Options->Sender filters 2. Add Sourceforge access: - Translator: CVS access, Shell access, Release Tech (no) - Developer: Project role: Developer, CVS access, Shell access, Release Tech (no), Task Manager (A&T), diff --git a/doc/RELEASING.md b/doc/RELEASING.md index e1f3bf74..700683e7 100644 --- a/doc/RELEASING.md +++ b/doc/RELEASING.md @@ -9,7 +9,7 @@ using the remote name `monitoring-plugins` (rather than `origin`). Before you start ---------------- -- Check Github Actions status. +- Check GitHub Actions status. - Update local Git repository to the current `master` tip. For a maintenance release (e.g., version 2.4.1), update to the current `maint-2.4` tip, instead. diff --git a/doc/developer-guidelines.sgml b/doc/developer-guidelines.sgml index 0afa733b..8288b897 100644 --- a/doc/developer-guidelines.sgml +++ b/doc/developer-guidelines.sgml @@ -23,9 +23,9 @@ Preface - The purpose of this guidelines is to provide a reference for + The purpose of these guidelines is to provide a reference for the plugin developers and encourage the standardization of the - different kind of plugins: C, shell, perl, python, etc. + different kinds of plugins: C, shell, perl, python, etc. Monitoring Plugins Development Guidelines Copyright (C) 2000-2024 (Monitoring Plugins Team) @@ -68,7 +68,7 @@ You should always print something to STDOUT that tells if the service is working or why it is failing. Try to keep the output short - - probably less that 80 characters. Remember that you ideally would like + probably less than 80 characters. Remember that you ideally would like the entire output to appear in a pager message, which will get chopped off after a certain length. @@ -214,7 +214,7 @@ back a numerical value, or metric, which is then compared to the warning and critical thresholds. Use the get_status(double, thresholds *) function to compare the value against the thresholds. - This is the generalised format for ranges: + This is the generalized format for ranges: [@]start:end @@ -474,7 +474,7 @@ If writing to a file (perhaps recording - performance data) explicitly close close it. The plugin never + performance data) explicitly close it. The plugin never calls exit; that is caught by p1.pl, so output streams are never closed. 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. ****************************************************************************/ diff --git a/tools/distclean b/tools/distclean index 961cc801..1ddc7532 100755 --- a/tools/distclean +++ b/tools/distclean @@ -37,7 +37,7 @@ find . -type f -name Makefile.in -print| xargs rm -f rm -f aclocal.m4 compile config.guess config.h.in config.sub configure depcomp rm -f m4/Makefile.am -echo "$0: Removing miscelanious files..." +echo "$0: Removing miscellaneous files..." rm -f po/*.gmo po/stamp-po rm -f lib/tests/*.Po rm -f doc/developer-guidelines.html diff --git a/tools/p1.pl b/tools/p1.pl index 9cbe6dc0..ea80c334 100644 --- a/tools/p1.pl +++ b/tools/p1.pl @@ -30,7 +30,7 @@ use IO::File; sub TIEHANDLE { my ($class, $fn) = @_; - my $handle = new IO::File "> $fn" or die "Cannot open embedded work filei $!\n"; + my $handle = new IO::File "> $fn" or die "Cannot open embedded work file $!\n"; bless { FH => $handle, Value => 0}, $class; }