diff options
| author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2026-04-08 18:26:03 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-04-08 18:26:03 +0200 |
| commit | 1db493092ca6a68ff690251cc428037b54019a73 (patch) | |
| tree | e11a18faf34c4d4284388b1ce99bf1aee9e44c91 /plugins/check_tcp.c | |
| parent | 3a6f9292f147de29b21dafa4cf9b7efce3e4cbfd (diff) | |
| download | monitoring-plugins-1db493092ca6a68ff690251cc428037b54019a73.tar.gz | |
added CHECK_EOF to work around warnings about EOF and -1 being the same (#2254)
Co-authored-by: Andreas Baumann <mail@andreasbaumann.cc>
Diffstat (limited to 'plugins/check_tcp.c')
| -rw-r--r-- | plugins/check_tcp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/check_tcp.c b/plugins/check_tcp.c index cd8e04b0..924322e4 100644 --- a/plugins/check_tcp.c +++ b/plugins/check_tcp.c | |||
| @@ -562,7 +562,7 @@ static check_tcp_config_wrapper process_arguments(int argc, char **argv, check_t | |||
| 562 | int option_index = | 562 | int option_index = |
| 563 | getopt_long(argc, argv, "+hVv46EAH:s:e:q:m:c:w:t:p:C:W:d:Sr:jD:M:", longopts, &option); | 563 | getopt_long(argc, argv, "+hVv46EAH:s:e:q:m:c:w:t:p:C:W:d:Sr:jD:M:", longopts, &option); |
| 564 | 564 | ||
| 565 | if (option_index == -1 || option_index == EOF || option_index == 1) { | 565 | if (CHECK_EOF(option_index) || option_index == 1) { |
| 566 | break; | 566 | break; |
| 567 | } | 567 | } |
| 568 | 568 | ||
