[monitoring-plugins] check_fping: small style improvement

Lorenz Kästle git at monitoring-plugins.org
Thu Jun 12 13:50:11 CEST 2025


 Module: monitoring-plugins
 Branch: master
 Commit: f2c6ce08e3da320d044564352faedd78eb76f1a1
 Author: Lorenz Kästle <lorenz.kaestle at netways.de>
   Date: Thu Jun 12 11:19:42 2025 +0200
    URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=f2c6ce08

check_fping: small style improvement

---

 plugins/check_fping.c          | 4 ++--
 plugins/check_fping.d/config.h | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/plugins/check_fping.c b/plugins/check_fping.c
index 4d328a01..c1e7dd17 100644
--- a/plugins/check_fping.c
+++ b/plugins/check_fping.c
@@ -132,7 +132,7 @@ int main(int argc, char **argv) {
 	char *command_line = NULL;
 
 	if (config.icmp_timestamp) {
-		// no paket size settable for ICMP timestamp
+		// no packet size settable for ICMP timestamp
 		xasprintf(&command_line, "%s %s -c %d %s", fping_prog, option_string, config.packet_count, server);
 	} else {
 		xasprintf(&command_line, "%s %s-b %d -c %d %s", fping_prog, option_string, config.packet_size, config.packet_count, server);
@@ -346,7 +346,7 @@ check_fping_config_wrapper process_arguments(int argc, char **argv) {
 		argc--;
 	}
 
-	while (1) {
+	while (true) {
 		int option_index = getopt_long(argc, argv, "+hVvaH:S:c:w:b:n:T:i:I:M:R:46", longopts, &option);
 
 		if (option_index == -1 || option_index == EOF || option_index == 1) {
diff --git a/plugins/check_fping.d/config.h b/plugins/check_fping.d/config.h
index 6d28382a..d95e9ded 100644
--- a/plugins/check_fping.d/config.h
+++ b/plugins/check_fping.d/config.h
@@ -32,7 +32,7 @@ typedef struct {
 
 	// only available with fping version >= 5.2
 	// for a given uint _fwmark_ fping sets _fwmark_ as a firewall mark
-	// in the pakets
+	// in the packets
 	unsigned int fwmark;
 	bool fwmark_set;
 



More information about the Commits mailing list