diff options
| author | Andreas Baumann <mail@andreasbaumann.cc> | 2026-01-23 08:57:19 +0100 |
|---|---|---|
| committer | Andreas Baumann <mail@andreasbaumann.cc> | 2026-01-23 08:57:19 +0100 |
| commit | 8d44bd8e6902dbb49e98c12bb6bf3d9e4c4b413f (patch) | |
| tree | 918eef8c998f2e504de567249b19d635151ac2b7 /plugins/check_dig.c | |
| parent | 5ede6918907f9a258fe9630f2f5cf668c0bbc6ce (diff) | |
| download | monitoring-plugins-8d44bd8e6902dbb49e98c12bb6bf3d9e4c4b413f.tar.gz | |
added CHECK_EOF to work around warnings about EOF and -1 being the same
Diffstat (limited to 'plugins/check_dig.c')
| -rw-r--r-- | plugins/check_dig.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/check_dig.c b/plugins/check_dig.c index 9ea19e6a..9ec8028a 100644 --- a/plugins/check_dig.c +++ b/plugins/check_dig.c | |||
| @@ -284,7 +284,7 @@ check_dig_config_wrapper process_arguments(int argc, char **argv) { | |||
| 284 | int option_index = | 284 | int option_index = |
| 285 | getopt_long(argc, argv, "hVvt:l:H:w:c:T:p:a:A:E:X:46", longopts, &option); | 285 | getopt_long(argc, argv, "hVvt:l:H:w:c:T:p:a:A:E:X:46", longopts, &option); |
| 286 | 286 | ||
| 287 | if (option_index == -1 || option_index == EOF) { | 287 | if (CHECK_EOF(option_index)) { |
| 288 | break; | 288 | break; |
| 289 | } | 289 | } |
| 290 | 290 | ||
