summaryrefslogtreecommitdiffstats
path: root/plugins/check_ide_smart.c
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2026-01-23 08:57:19 +0100
committerAndreas Baumann <mail@andreasbaumann.cc>2026-01-23 08:57:19 +0100
commit8d44bd8e6902dbb49e98c12bb6bf3d9e4c4b413f (patch)
tree918eef8c998f2e504de567249b19d635151ac2b7 /plugins/check_ide_smart.c
parent5ede6918907f9a258fe9630f2f5cf668c0bbc6ce (diff)
downloadmonitoring-plugins-8d44bd8e6902dbb49e98c12bb6bf3d9e4c4b413f.tar.gz
added CHECK_EOF to work around warnings about EOF and -1 being the same
Diffstat (limited to 'plugins/check_ide_smart.c')
-rw-r--r--plugins/check_ide_smart.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/check_ide_smart.c b/plugins/check_ide_smart.c
index c1325cf9..43731039 100644
--- a/plugins/check_ide_smart.c
+++ b/plugins/check_ide_smart.c
@@ -169,7 +169,7 @@ static check_ide_smart_config_wrapper process_arguments(int argc, char **argv) {
169 int longindex = 0; 169 int longindex = 0;
170 int option_index = getopt_long(argc, argv, "+d:iq10nhVv", longopts, &longindex); 170 int option_index = getopt_long(argc, argv, "+d:iq10nhVv", longopts, &longindex);
171 171
172 if (option_index == -1 || option_index == EOF || option_index == 1) { 172 if (CHECK_EOF(option_index) || option_index == 1) {
173 break; 173 break;
174 } 174 }
175 175