diff options
Diffstat (limited to 'plugins/check_fping.c')
| -rw-r--r-- | plugins/check_fping.c | 4 |
1 files changed, 2 insertions, 2 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) { |
