diff options
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/check_fping.c | 4 | ||||
-rw-r--r-- | 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) { | |||
132 | char *command_line = NULL; | 132 | char *command_line = NULL; |
133 | 133 | ||
134 | if (config.icmp_timestamp) { | 134 | if (config.icmp_timestamp) { |
135 | // no paket size settable for ICMP timestamp | 135 | // no packet size settable for ICMP timestamp |
136 | xasprintf(&command_line, "%s %s -c %d %s", fping_prog, option_string, config.packet_count, server); | 136 | xasprintf(&command_line, "%s %s -c %d %s", fping_prog, option_string, config.packet_count, server); |
137 | } else { | 137 | } else { |
138 | xasprintf(&command_line, "%s %s-b %d -c %d %s", fping_prog, option_string, config.packet_size, config.packet_count, server); | 138 | 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) { | |||
346 | argc--; | 346 | argc--; |
347 | } | 347 | } |
348 | 348 | ||
349 | while (1) { | 349 | while (true) { |
350 | int option_index = getopt_long(argc, argv, "+hVvaH:S:c:w:b:n:T:i:I:M:R:46", longopts, &option); | 350 | int option_index = getopt_long(argc, argv, "+hVvaH:S:c:w:b:n:T:i:I:M:R:46", longopts, &option); |
351 | 351 | ||
352 | if (option_index == -1 || option_index == EOF || option_index == 1) { | 352 | 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 { | |||
32 | 32 | ||
33 | // only available with fping version >= 5.2 | 33 | // only available with fping version >= 5.2 |
34 | // for a given uint _fwmark_ fping sets _fwmark_ as a firewall mark | 34 | // for a given uint _fwmark_ fping sets _fwmark_ as a firewall mark |
35 | // in the pakets | 35 | // in the packets |
36 | unsigned int fwmark; | 36 | unsigned int fwmark; |
37 | bool fwmark_set; | 37 | bool fwmark_set; |
38 | 38 | ||