summaryrefslogtreecommitdiffstats
path: root/plugins/check_ping.c
diff options
context:
space:
mode:
authorLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2025-03-17 13:24:55 +0100
committerGitHub <noreply@github.com>2025-03-17 13:24:55 +0100
commit544a3a1328566eb395f80d233a4a3eaf3bacf306 (patch)
treedcbbeb558359492541a27cbcc78d70ba6a498ac6 /plugins/check_ping.c
parentaf6cfefaacbb15bf371e0d59383b54ff695d1529 (diff)
parente04d2ec8c6014eaeb3c5ca51ff2dcb0f340a3a22 (diff)
downloadmonitoring-plugins-544a3a1328566eb395f80d233a4a3eaf3bacf306.tar.gz
Merge pull request #2110 from RincewindsHat/netbsd-fixes
Netbsd fixes
Diffstat (limited to 'plugins/check_ping.c')
-rw-r--r--plugins/check_ping.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/check_ping.c b/plugins/check_ping.c
index 940b9475..6bcdeaad 100644
--- a/plugins/check_ping.c
+++ b/plugins/check_ping.c
@@ -116,10 +116,10 @@ int main(int argc, char **argv) {
116# ifdef PING_HAS_TIMEOUT 116# ifdef PING_HAS_TIMEOUT
117 xasprintf(&cmd, rawcmd, timeout_interval, config.max_packets, config.addresses[i]); 117 xasprintf(&cmd, rawcmd, timeout_interval, config.max_packets, config.addresses[i]);
118# else 118# else
119 xasprintf(&cmd, rawcmd, config.max_packets, addresses[i]); 119 xasprintf(&cmd, rawcmd, config.max_packets, config.addresses[i]);
120# endif 120# endif
121#else 121#else
122 xasprintf(&cmd, rawcmd, addresses[i], config.max_packets); 122 xasprintf(&cmd, rawcmd, config.addresses[i], config.max_packets);
123#endif 123#endif
124 124
125 if (verbose >= 2) { 125 if (verbose >= 2) {