diff --git a/plugins/check_overcr.c b/plugins/check_overcr.c
index 9958432e1c8edbc213b1f6877166a15d6bfc08ba..67fb5d1f7403a2348eefa410b6dd35ca841b09b5 100644 (file)
--- a/plugins/check_overcr.c
+++ b/plugins/check_overcr.c
{
int c;
- int option_index = 0;
- static struct option long_options[] = {
+ int option = 0;
+ static struct option longopts[] = {
{"port", required_argument, 0, 'p'},
{"timeout", required_argument, 0, 't'},
{"critical", required_argument, 0, 'c'},
}
while (1) {
- c = getopt_long (argc, argv, "+hVH:t:c:w:p:v:", long_options,
- &option_index);
+ c = getopt_long (argc, argv, "+hVH:t:c:w:p:v:", longopts,
+ &option);
if (c == -1 || c == EOF || c == 1)
break;