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_snmp.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_snmp.c')
| -rw-r--r-- | plugins/check_snmp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/check_snmp.c b/plugins/check_snmp.c index f470d222..52090bf8 100644 --- a/plugins/check_snmp.c +++ b/plugins/check_snmp.c | |||
| @@ -445,7 +445,7 @@ static process_arguments_wrapper process_arguments(int argc, char **argv) { | |||
| 445 | argc, argv, | 445 | argc, argv, |
| 446 | "nhvVO46t:c:w:H:C:o:e:E:d:D:s:t:R:r:l:u:p:m:P:N:L:U:a:x:A:X:M:f:z:", longopts, &option); | 446 | "nhvVO46t:c:w:H:C:o:e:E:d:D:s:t:R:r:l:u:p:m:P:N:L:U:a:x:A:X:M:f:z:", longopts, &option); |
| 447 | 447 | ||
| 448 | if (option_char == -1 || option_char == EOF) { | 448 | if (CHECK_EOF(option_char)) { |
| 449 | break; | 449 | break; |
| 450 | } | 450 | } |
| 451 | 451 | ||
| @@ -515,7 +515,7 @@ static process_arguments_wrapper process_arguments(int argc, char **argv) { | |||
| 515 | argc, argv, | 515 | argc, argv, |
| 516 | "nhvVO46t:c:w:H:C:o:e:E:d:D:s:t:R:r:l:u:p:m:P:N:L:U:a:x:A:X:M:f:z:", longopts, &option); | 516 | "nhvVO46t:c:w:H:C:o:e:E:d:D:s:t:R:r:l:u:p:m:P:N:L:U:a:x:A:X:M:f:z:", longopts, &option); |
| 517 | 517 | ||
| 518 | if (option_char == -1 || option_char == EOF) { | 518 | if (CHECK_EOF(option_char)) { |
| 519 | break; | 519 | break; |
| 520 | } | 520 | } |
| 521 | 521 | ||
