summaryrefslogtreecommitdiffstats
path: root/plugins-root/check_icmp.d/check_icmp_helpers.c
diff options
context:
space:
mode:
authorLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2025-06-23 10:17:28 +0200
committerLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2025-06-23 10:17:28 +0200
commitcd20cc063245523d51013849fa28eb0cac013171 (patch)
treea573a64c9c6c626b6c04d7eccfc74c62b7fd9b89 /plugins-root/check_icmp.d/check_icmp_helpers.c
parent8ae415ee4ceddeed1c1a1e0e6e64175cff6731c3 (diff)
downloadmonitoring-plugins-cd20cc06.tar.gz
check_icmp: add long options, add output format option
This commit switches check_icmp from getopt to getopt_long to provide long options too and (most importantly) homogenize option parsing between the different plugins.
Diffstat (limited to 'plugins-root/check_icmp.d/check_icmp_helpers.c')
-rw-r--r--plugins-root/check_icmp.d/check_icmp_helpers.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins-root/check_icmp.d/check_icmp_helpers.c b/plugins-root/check_icmp.d/check_icmp_helpers.c
index ec786305..9acc96fd 100644
--- a/plugins-root/check_icmp.d/check_icmp_helpers.c
+++ b/plugins-root/check_icmp.d/check_icmp_helpers.c
@@ -52,6 +52,8 @@ check_icmp_config check_icmp_config_init() {
52 52
53 .number_of_hosts = 0, 53 .number_of_hosts = 0,
54 .hosts = NULL, 54 .hosts = NULL,
55
56 .output_format_is_set = false,
55 }; 57 };
56 return tmp; 58 return tmp;
57} 59}