diff options
| author | Andreas Baumann <mail@andreasbaumann.cc> | 2026-01-23 08:57:19 +0100 |
|---|---|---|
| committer | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2026-04-08 18:17:06 +0200 |
| commit | aa155267bf366ba779ae5ec7fb033c28b54b266e (patch) | |
| tree | e11a18faf34c4d4284388b1ce99bf1aee9e44c91 /plugins/check_fping.c | |
| parent | 3a6f9292f147de29b21dafa4cf9b7efce3e4cbfd (diff) | |
| download | monitoring-plugins-aa155267bf366ba779ae5ec7fb033c28b54b266e.tar.gz | |
added CHECK_EOF to work around warnings about EOF and -1 being the same
Diffstat (limited to 'plugins/check_fping.c')
| -rw-r--r-- | plugins/check_fping.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/check_fping.c b/plugins/check_fping.c index 6160c2cb..86ef64a4 100644 --- a/plugins/check_fping.c +++ b/plugins/check_fping.c | |||
| @@ -361,7 +361,7 @@ check_fping_config_wrapper process_arguments(int argc, char **argv) { | |||
| 361 | int option_index = | 361 | int option_index = |
| 362 | getopt_long(argc, argv, "+hVvaH:S:c:w:b:n:T:i:I:M:R:46", longopts, &option); | 362 | getopt_long(argc, argv, "+hVvaH:S:c:w:b:n:T:i:I:M:R:46", longopts, &option); |
| 363 | 363 | ||
| 364 | if (option_index == -1 || option_index == EOF || option_index == 1) { | 364 | if (CHECK_EOF(option_index) || option_index == 1) { |
| 365 | break; | 365 | break; |
| 366 | } | 366 | } |
| 367 | 367 | ||
